title: use of array of structs in c#
body: <p>I need help about array of structs initiliazation. In a code something like below, how we can accomplish the initiliazation defined in comment ??</p>
  
  <pre><code>class structExample
  {
      struct state{
          int previousState;
          int currentState;
      }
       static state[] durum;
  
       public static void main(String[] args)
       {
           durum = new state[5];
  
           // how we can assign new value to durum[0].previousState = 0; doesn't work ??
  
  
       }
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks..</p>