title: How to create const string from string variable
body: <p>I want to create const string from another string variable. For example the next two code snippets can't compile</p>
  
  <p>1)</p>
  
  <pre><code>string str = "111";
  const string str2 = str;
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>string str = "111";
  const string str2 = new string(str.ToCharArray());
  </code></pre>
  
  <p>Which results in</p>
  
  <pre><code>Error: The expression being assigned to 'str2' must be constant 
  </code></pre>
  
  <p>Is there any way to create a const string from string variable ?</p>