title: Foreach loop converting error in C#
body: <p>I am brushing up and reviewing some of my C# notes.</p>
  
  <p>I'm running one of his examples for the first time and I am getting this error: <code>Cannot convert type  double to  double[] error</code>. To me, the code looks good, I don't know why it's not converting. Why is this line causing an error?</p>
  
  <pre><code>    class Program
      {
  
          static void Main(string[] args)
          {
              double[,] list1;
              int r = 5, c = 10;
              list1 = new double[r, c];
  
              for(int i = 0; i &lt; r; i++)
                  for(int j = 0; j&lt;c; j++)
                      list1[i,j] = Convert.ToDouble(Console.ReadLine());
  
              foreach (double [] i in list1)  // -- THIS LINE IS GIVING ME THE ERROR --
              {
                  foreach (double j in i)
                      Console.WriteLine(j);
              }
  
              Console.Read();
          }
      }
  </code></pre>