Ejemplo n.º 1
0
        private void testxuni()
        {
            Childcls child = new Childcls {
                firstname = "helloname", firstage = 123
            };

            Childcls.Nested nest = new Childcls.Nested(child);
            ((Parentcls)child).func1(0);
            child.newtestfunc();
            ((Parentcls)child).newtestfunc();
            child.overridetestfunc();
            ((Parentcls)child).overridetestfunc();
        }
Ejemplo n.º 2
0
 public Nested(Childcls parent)
 {
     // TODO: Complete member initialization
     this.parent   = parent;
     parent.salary = 1;
 }