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.
EDIT: Thanks for the responses, guys!
This was a small fault on my part, let me try and explain. The class was a part of a factory, and the factory has instance of all the classes. But this method was NoWhere to be found because it wasn't part of the interface thats implemented by the class, instead it was just added as an helper function.
The answer were also very helpful!