ArgsTests.BasicTests.PointArgs.Revive C# (CSharp) Метод

Revive() приватный Метод

private Revive ( string key, string val ) : System.Point
key string
val string
Результат System.Point
            public static Point Revive(string key, string val)
            {
                var match = Regex.Match(val, @"(\d*),(\d*)");
                if (match.Success == false)
                {
                    throw new ArgException("Not a valid point: " + val);
                }
                else
                {
                    Point ret = new Point();
                    ret.X = int.Parse(match.Groups[1].Value);
                    ret.Y = int.Parse(match.Groups[2].Value);
                    return ret;
                }
            }
BasicTests.PointArgs