"C# Conundrum: Decoding the Mysterious Case of Missing Method Parameters"

Иллона

Member
Joined
Mar 1, 2012
Messages
5
Reaction score
0
"I'm at my wit's end, folks. I'm working on a C# project and I've hit a wall. I've got this method that's calling another method, but somehow the latter is missing the parameters I know it's expecting - it's like they're just disappearing into thin air!"
 

leonkamin

Member
Joined
Feb 5, 2005
Messages
5
Reaction score
0
"Hey OP, just had this happen to me too and I solved it by checking my namespace import statement. Make sure you're not accidentally importing the wrong namespace, it's a weird one but it's happened to me before. Glad I could help!"
 
Joined
Feb 2, 2012
Messages
5
Reaction score
0
"Dude, I had a similar issue last week - turned out it was a stupid typo in the method declaration. Make sure you checked for any typos and that the method is actually defined in the class you're calling it from. Try cleaning your project and rebuilding, it might just do the trick."
 
Top