title: C# Equivalent to Java's Double Brace Initialization?
body: <p>Expected code in C# (that Java has)</p>
  
  <pre><code>List&lt;String&gt; myList = new List&lt;String&gt;() {{
      add("Hello");
      add("World!");
  }}
  // myList = [ "Hello", "World" ]
  </code></pre>
  
  <p>Just wondering if there is an equivalent, possibly with C#'s static constructors?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>To clarify this isn't explicitly for Collections but for any class structure.
  For example:</p>
  
  <pre><code>abstract class myClass {
    String data;
    List&lt;String&gt; list;
    void setupList() {
      list = new List&lt;String&gt;();
    }
  }
  
  ...
  
  var obj = new myClass() {{
    data = "Yo";
    setupList();
  }};
  </code></pre>