Beispiel #1
0
        static void Main(string[] args)
        {
            OuterClass outerClass = new OuterClass("Outer");

            OuterClass.NestedClass innerClass = new OuterClass.NestedClass(outerClass, "nested");

            innerClass.PrintNames();
        }
Beispiel #2
0
 public NestedClass(OuterClass parent, string name)
 {
     this.parent = parent;
     this.name   = name;
 }