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:
In order to call non static method (i.e. instance method) you must have a instance of object of the method before you can call the said method.
What you are actually trying to do is this. Note the this
object in Method1. You do not have this
available in static methods.
static void Method1() {
this.Method2()
}
void Method2() { }