Why can't you call a non-static method from a static method?

Posted by VoodooChild on Stack Overflow See other posts from Stack Overflow or by VoodooChild
Published on 2010-06-10T19:22:13Z Indexed on 2010/06/10 19:33 UTC
Read the original article Hit count: 232

Filed under:
|
|

I have a static method [Method1] in my class, which calls another method [Method2] in the same class and is not a static method. But this is a no-no. I get this error:

An object reference is required for the non-static field, method, or property "ClassName.MethodName()"

Can someone please briefly describe why? including other things that might be related to this.

© Stack Overflow or respective owner

Related posts about c#

Related posts about classes