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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…