Beispiel #1
0
        public void Test()
        {
            var v = GetValues(10);

            Console.WriteLine("Saut " + v.GetType().FullName);
            v = GetValues(10);
            Console.WriteLine("Saut " + v.GetType().FullName);
            foreach (object o in v)
            {
                Console.WriteLine(o);
            }
            SubClass   subClass = new SubClass();
            SuperClass super    = subClass;

            super.Field = 15;
            Console.WriteLine(super.GetField());
            Console.WriteLine(subClass.GetField());
        }
Beispiel #2
0
 public static int GetField(this SubClass sup)
 {
     return(sup.Field * 2);
 }