title: destination array was not long enough. check destindex and length and the array's lower bounds
body: <p>I have a class with the following code:</p>
  
  <pre><code>  Array tags;
    if (lines.Length &gt; 0)
    {
        configText = lines[0];
        tags = new Array[lines.Length];
        lines.CopyTo(tags,1);
    }
  </code></pre>
  
  <p>Here I get the following error: </p>
  
  <blockquote>
    <p>Destination array was not long enough. Check destindex and length and
    the array's lower bounds.</p>
  </blockquote>
  
  <p>Method:</p>
  
  <pre><code>     private bool ReadPointListFile(string fileName) {
  
          // Read each line of the file into a string array. Each element
          // of the array is one line of the file.
          string[] lines = System.IO.File.ReadAllLines(fileName);
          string configText = string.Empty;
  
          if (lines.Length &gt; 0)
          {
              configText = lines[0];
              tags = new Array[lines.Length];
              lines.CopyTo(tags,1);
          }
          else
              lines.CopyTo(tags,0);
  
          GetConfigurationInfo(lines[0], out this.sInterval, out this.dataAggregate);
  
          return true;
      }
  </code></pre>