title: C# class with array of classes
body: <p>I've the following class;</p>
  
  <pre><code>public class Hotel
  {
      public int Id { get; set; }
      public Room[] room { get; set; }
  
      public class Room
      {    
          public int RoomId { get; set; }
          public int RoomTypeId { get; set; }
  
          public string Name { get; set; }        
      }
  }
  </code></pre>
  
  <p>I can create a instance of the class like below as assign data fine</p>
  
  <pre><code>Hotel oHotel = null;
  oHotel = new Hotel ();
  oHotel.Id = 100;
  </code></pre>
  
  <p>But how do I create a sub instance for the Room class which I need to add associated data for the Hotel class ?</p>