Exemplo n.º 1
0
        static void Main(string[] args)
        {
            oldclass o = new oldclass();

            o.method1();
            o.method2();
            o.method3();
        }
Exemplo n.º 2
0
 public static void method3(this oldclass o)
 {
     Console.WriteLine("hello3");
 }
Exemplo n.º 3
0
 public static void method2(this oldclass o)
 {
     Console.WriteLine("Hello2");
 }