Beispiel #1
0
        static void Main(string[] args)
        {
            oldclass o = new oldclass();

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