Cannot implicitly convert string[] to string when splitting
<p>I am new to c# and I don't understand why this isn't working. I want to split a previously splitted string.</p>

<p>My code is the following:</p>

<pre><code>int i;
string s;
string[] temp, temp2;

Console.WriteLine("write 'a-a,b-b,c-c,d-d'";
s = Console.ReadLine();
temp = s.Split(',');

for (i = 0; i &lt; temp.Length; i++)
    temp2[i] = temp[i].Split('-');
</code></pre>

<p>I get the following error <code>Cannot implicitly convert type 'string[]' to 'string</code></p>

<p>I want to end with:</p>

<pre><code>temp = {a-a , b-b , c-c , d-d};
temp2 = {{a,a},{b,b},{c,c},{d,d}};
</code></pre>
