static void Main(string[] args) { SomeClass sc = new SomeClass(); sc.PrintMyMembers(); }
SomeClass _sc = null; // Reference to enclosing class. public MyNested(SomeClass sc) // Constructor of the nested class. { _sc = sc; // Store reference to enclosing class. }