title: Use AddRange for a new List<string>
body: <p><strong>How to: Use AddRange for a List</strong></p>
  
  <pre><code>List&lt;string&gt; list = 
      new List&lt;string&gt;().AddRange(File.ReadAllLines(path, Encoding.UTF8);
  </code></pre>
  
  <p>It is a variable which is declared globally - what is my mistake?</p>
  
  <p>The error is equal to </p>
  
  <blockquote>
    <p>Converting from string to void is not allowed</p>
  </blockquote>