public static PositionData Parse(string str)
 {
     string[] nums = str.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
     PositionData p = new PositionData();
     p.X = int.Parse(nums[0]);
     p.Y = int.Parse(nums[1]);
     return p;
 }
Example #2
0
        public static PositionData Parse(string str)
        {
            string[]     nums = str.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
            PositionData p    = new PositionData();

            p.X = int.Parse(nums[0]);
            p.Y = int.Parse(nums[1]);
            return(p);
        }