title: Defining constants in C#
body: <p>I'm C/C++ to C# developer.</p>
  
  <p>I need to do something like below,</p>
  
  <pre><code>#define LEN 20
  int data[LEN];
  </code></pre>
  
  <p>Since C# doesn't support <code>#define</code>, many forums suggests to declare a <code>const</code> variable. A <code>const</code> variable might help me for below, but not for above.</p>
  
  <pre><code>for (int a = 0; a &lt; LEN; a++)
  {
      x += data[LEN - a - 1];
  }
  </code></pre>
  
  <p>So, how do I use the constant for array declarations as well?</p>