C# string.split variances : <p>I have probably missed something very basic but this has me stumped.</p>

<p>When using String.Split() I get different results between </p>

<pre><code>.Split(' ') 
</code></pre>

<p>and </p>

<pre><code>.Split(new char[' '])
</code></pre>

<p>Given this code:</p>

<pre><code>using (System.IO.StreamWriter sw = new StreamWriter(@"C:\consoleapp1.log", true))
{
    string anystring = "pagelength=60 pagewidth=170 cpi=16 lpi=8 landscape=1 lm=2";
    sw.WriteLine(".Split(' ')");
    string[] anystrings1 = anystring.Split(' ');
    for (int i = 0; i &lt; anystrings1.Length; i++)
    {
        sw.WriteLine($@"{i,2}: {anystrings1[i]}");
    }
    sw.WriteLine(".Split(new char[' '])");
    string[] anystrings2 = anystring.Split(new char[' ']);
    for (int i = 0; i &lt; anystrings2.Length; i++)
    {
        sw.WriteLine($@"{i,2}: {anystrings2[i]}");
    }

}
</code></pre>

<p>Why do I get different results:</p>

<pre><code>.Split(' ')
 0: pagelength=60
 1: pagewidth=170
 2: cpi=16
 3: lpi=8
 4: landscape=1
 5: lm=2
.Split(new char[' '])
 0: pagelength=60 pagewidth=170 cpi=16 lpi=8 landscape=1 lm=2
</code></pre>
