title: C# Add member to nested class of inherited class
body: <p>Is this possible to do something like this?:</p>
  
  <pre><code>class A
  {
      public class B  {
          public static int x = 0;
      }
  }
  
  class subA : A
  {
      public class B {
          public static int y = 1;
      }
  }
  
  
  // usage:
  
  int n = subA.B.x + subA.B.y;
  </code></pre>
  
  <p>Note that <code>subA.B</code> should has same name as 'A.B' and inherites <code>A.B</code>'s members with some extra members.</p>