Use of unassigned out parameter, c#
<p>I have very simple problem.
I made a very simple function for you to demonstarte my problem.</p>

<p>//main//</p>

<pre><code>static void Main(string[] args)       
{
 double[,] mydouble = new double[1, 4];
 mynewMatrix(out mydouble);// call of method
}
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>
