public static int MainMethod()
 {
     dynamic p = new Derived();
     return ((Parent)p).Foo();
 }
Esempio n. 2
0
        public static int MainMethod()
        {
            dynamic p = new Derived();

            return(((Parent)p).Foo());
        }