Cómo llamar a un método no estático
class Program {
public static void Main(string[] args) {
Program p = new Program();
p.TestMethod();
staticFunction();
}
public void TestMethod() {
Console.WriteLine("Inside non-static function");
}
public static void staticFunction() {
Console.WriteLine("Inside static function");
}
}
Fancy Flatworm