title: Use of unassigned out parameter, c#
body: <p>I have very simple problem.
  I made a very simple function for you to demonstrate my problem.</p>
  
  <pre><code>static void Main(string[] args)       
  {
      double[,] mydouble = new double[1, 4];
      mynewMatrix(out mydouble);
  }
  public static void mynewMatrix(out double[,] d)
  {
      for (int i = 0; i &lt; 4; i++)
          d[0, i] = i;
  }
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Use of unassigned out parameter 'newMAt' The out parameter 'newMAt'
    must be assigned to before control leaves the current method</p>
  </blockquote>
  
  <p>I don't know where is problem.</p>