title: Populate array directly through object initializer
body: <p>I have these 2 classes:</p>
  
  <pre><code>    class Customer
      {
          public string Name;
          public string City;
          public Order[] Orders;
      }
      class Order
      {
          public int Quantity;
          public Product Product;
      }
  </code></pre>
  
  <p>And then in the <code>Main</code> I do the following:</p>
  
  <pre><code>            Customer cust = new Customer
              {
                  Name = "some name",
                  City = "some city",
                  Orders = {
                      new Order { Quantity = 3, Product = productObj1 },
                      new Order { Quantity = 4, Product = productObj2 },
                      new Order { Quantity = 1, Product = producctObj3 }
                  }
              };
  </code></pre>
  
  <p>But I cannot initialize the array <code>... with a collection initializer</code>. 
  And I know that this, i.e., is possible <code>string[] array = { "A" , "B" };</code> which looks the same to me...  </p>
  
  <p>Of course I could make separate objects of <code>Order</code>, put them in an array and then assign it to<code>Orders</code> , but I don't like the idea. </p>
  
  <p>How can I achieve the clean and less-code-solution in this case?</p>