title: Receiving 'Expression being assigned must be constant' when it is
body: <p>Is there a way to use something like this:</p>
  
  <pre><code>private const int MaxTextLength = "Text i want to use".Length;
  </code></pre>
  
  <p>I think it would be more readable and less error prone than using something like:</p>
  
  <pre><code>private const int MaxTextLength = 18;
  </code></pre>
  
  <p>Are there any ways to have the length of the text be the source for a constant variable?</p>