Populate List with Directory
<p>I  use this </p>

<pre><code>        if (string.IsNullOrEmpty(pastae)) { MessageBox.Show("Must choose a folder"); }
        else
        {   nombres = Directory.GetFiles(pastae).ToArray();
            listBox1.Items.AddRange(nombres);                
        }
</code></pre>

<p>that works fine, but i need some properties of listview , and i have read that list&lt;> is more efficient to populate a listview in this case, i have try with this code:</p>

<pre><code>      List&lt;string&gt; mclist = new List&lt;string&gt;();
      listview.Items.Clear();
      foreach(string elem in mclist)
      {
      listview.Items.Add(new ListViewItem(elem));
      }
</code></pre>

<p>but how i can not make this</p>

<pre><code>      list&lt;string&gt; nmfiles = new List&lt;string&gt;();
      nmfiles =  Directory.GetFiles(pastae).ToArray();
</code></pre>

<p>Thanks by any orientation.</p>
