+ 1
Exploring delegates : code error MethodName does not exist in current context
To learn more. I am trying to make a delegate. In the code below https://code.sololearn.com/c5oXNAt6pEM3 When I compile the code. The compiler give this error message ..\Playground\(23,62): error CS0103: The name 'MethodHelloWord' does not exist in the current context The method is there, but the compiler does not know about it. What am I doing wrong ?
3 ответов
+ 1
It's just a simple typo. You have 'HelloWord' instead of 'HelloWorld'.
Fix the spelling mistake and it should work fine.
+ 2
Thanks man. Fixed the typo and it worked.
+ 1
No problem. I've been in similar situations myself, sometimes all it takes is a fresh pair of eyes.