title: C# 3 dimensional array definition issue
body: <p>My following code has compile error,</p>
  
  <p>Error   1   Cannot implicitly convert type 'TestArray1.Foo[<em>,</em>,*]' to 'TestArray1.Foo[][][]'    C:\Users\lma\Documents\Visual Studio 2008\Projects\TestArray1\TestArray1\Program.cs 17  30  TestArray1</p>
  
  <p>Does anyone have any ideas? Here is my whole code, I am using VSTS 2008 + Vista 64-bit.</p>
  
  <pre><code>namespace TestArray1
  {
      class Foo
      {    
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              Foo[][][] foos = new Foo[1, 1, 1];
  
              return;
          }
      }
  }
  </code></pre>
  
  <p>EDIT: version 2. I have another version of code, but still has compile error. Any ideas?</p>
  
  <pre><code>Error   1   Invalid rank specifier: expected ',' or ']' C:\Users\lma\Documents\Visual Studio 2008\Projects\TestArray1\TestArray1\Program.cs 17  41  TestArray1
  Error   2   Invalid rank specifier: expected ',' or ']' C:\Users\lma\Documents\Visual Studio 2008\Projects\TestArray1\TestArray1\Program.cs 17  44  TestArray1
  
  
  namespace TestArray1
  {
      class Foo
      {    
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              Foo[][][] foos = new Foo[1][1][1];
  
              return;
          }
      }
  }
  </code></pre>
  
  <p>EDIT: version 3. I think I want to have a jagged array. And after learning from the fellow guys. Here is my code fix, and it compile fine in VSTS 2008. What I want is a jagged array, and currently I need to have only one element. Could anyone review whether my code is correct to implement my goal please?</p>
  
  <pre><code>namespace TestArray1
  {
      class Foo
      {    
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              Foo[][][] foos = new Foo[1][][];
              foos[0] = new Foo[1][];
              foos[0][0] = new Foo[1];
              foos[0][0][0] = new Foo();
              return;
          }
      }
  }
  </code></pre>
  
  <p>thanks in advance,
  George</p>