SyntaxFix
Write A Post
Hire A Developer
Questions
Because of your initialization wrong.
Don't do like this,
MethodName _methodName;
Do like this,
MethodName _methodName = MethodName();