static void Main(string[] args) { oldclass o = new oldclass(); o.method1(); o.method2(); o.method3(); }
public static void method3(this oldclass o) { Console.WriteLine("hello3"); }
public static void method2(this oldclass o) { Console.WriteLine("Hello2"); }