title: Multidimensional Arrays in a struct in C#
body: <p>I'm trying to convert the following (shortened for readability) to C# and running into problems</p>
  
  <pre><code>#define DISTMAX 10
  struct Distort {
    int    a_order;
    double a[DISTMAX][DISTMAX];
  };
  </code></pre>
  
  <p>I thought in structs it was a simple case of using "fixed" however I'm still getting problems.</p>
  
  <p>Here's what I've got (With a define higher up the page):</p>
  
  <pre><code>const int DISTMAX = 10;
  struct Distort
  {
          int a_order;
          fixed double a[DISTMAX,DISTMAX];
  }
  </code></pre>
  
  <p>The error I get is stimply Syntax error that ] and [ are expected due to what I expect to be a limitation of a single dimension array.</p>
  
  <p>Is there a way around this?</p>