I am using C# and I have a string with the values like strResult = "(30,40),(189,339),(30,40),(60,30)". I wanted to convert these value into System.Windows.Point . so that 1st value of point[0].x = 30 ,point[0].y = 40 and so on.
{
string[] numbers = System.Text.RegularExpressions.Regex.Split(strResult, @"[(),]+");
for (int i = 0; i < numbers; i++)
{
System.Windows.Point point = // do something
drawingContext.DrawEllipse(Brushes.Green, null, new System.Windows.Point(point.X, point.Y), 3, 3);
}
Can anyone help on this ? Thanks in advance :)