static void Main(string[] args)
    {
        Derived derived = new Derived();

        BaseClass.NestedClass nestedBase             = derived.nestedClass;
        Derived.NestedClass   nestedDerived          = (Derived.NestedClass)nestedBase;
        Derived.NestedClass.DeeperNestedClass deeper = nestedDerived.deeper;
        int property = deeper.VeryDeepPropery;
    }
예제 #2
0
 public static void NestedClassInitialization()
 {
     BaseClass.NestedClass nestedClassInstance = new BaseClass.NestedClass();
     nestedClassInstance.PtintToConsole(true);
 }
 public static bool Function1(BaseClass.NestedClass obj)
 {
     return(true);
 }