How can I parse integer from a user provided string in C#
<p>I have a specification where the user needs to type in a string of pair of co-ordinates like:</p>

<pre><code>{{2,3}, {9,0}}
</code></pre>

<p>these are the co-ordinates of a line on a 2-D axis.</p>

<p>I want to parse this user-input string during runtime dynamically in <strong>C#</strong> and enter these co-ordinates in a 2-D array. I know we can do hard-coded:</p>

<pre><code>int[,] CoOrdinates = {{2,3}, {9,0}};
</code></pre>

<p>but I do not know how to get the user to type in a string and get the co-ordinates from the string to store in the array dynamically.</p>

<p>I'm using Console.Readline(); to get the user to input the co-ordinates.</p>

<p>Please help, thanks!</p>
