title: Initilize an array of struct
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/7079206/how-to-initialize-array-of-struct">How to initialize array of struct?</a><br>
    <a href="https://stackoverflow.com/questions/309496/initializing-an-array-of-structs-in-c">Initializing an Array of Structs in C#</a>  </p>
  </blockquote>
  
  
  
  <p>C#, Visual studio 2010</p>
  
  <p>I want declare an array of struct and initialize it on the same time but can not get it right
  How do i write to default initialize an array consisting of structs ?</p>
  
  <p>The following wont go through the compiler but show the idea of what I want to archive </p>
  
  <pre><code>    private struct PrgStrTrans_t
      {
          public int id;
          public string name;
          public string fname;
      }
  
      private PrgStrTrans_t[] PrgStrTrans = { {1, "hello", "there"}, {2, "Fun", thisone"}}
  </code></pre>
  
  <p>Is it possible at all ?</p>