how to create dynamic array in c#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5307642/how-to-create-dynamic-array-in-c">how to create dynamic array in c#</a>  </p>
</blockquote>



<p>This is my code.
I explecitely specify the server names. but i want to specify implicitely server names. Hence create dynamic array.that take server names implicitely.&amp; remove <code>\\</code> &amp; <code>\n</code> in the server names. hence how to create dynamic array with changes of code. please give me solution for this question with changes of code.
Thank you.</p>

<pre><code>        System.Diagnostics.Process p = new System.Diagnostics.Process();
        p.StartInfo.FileName = "cmd ";
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.Arguments = "/C net view";
        char[] delimiterChars = { '\\' };
        string input = "\\st1\n,\\st10\n,\\st4\n,\\st5";
        List&lt;string&gt; serverNames = input.Split(',').ToList();
        Console.WriteLine(input);
        Console.ReadLine();
</code></pre>
