title: How to have a parent property in C# class?
body: <p>For example, in the following classes I need to have a <code>Parent</code> property in <code>Cupboard</code> and <code>Shelf</code>. How do I do it?</p>
  
  <pre><code>public class Room
  {
      public List&lt;Cupboard&gt; Cupboards { get; set; }
  }
  
  public class Cupboard
  {
      public Room Parent 
      {
          get
          {
  
          }
      }
      public List&lt;Shelf&gt; Shelves { get; set; }
  }
  
  public class Shelf
  {
  
  }
  </code></pre>