Use PointConverter

This commit is contained in:
Dean Herbert 2021-01-09 00:56:54 +09:00
parent 9182f5dafb
commit 82725b59c0
1 changed files with 1 additions and 3 deletions

View File

@ -29,9 +29,7 @@ public override Point ReadJson(JsonReader reader, Type objectType, Point existin
Debug.Assert(str != null);
var split = str.Split(',');
return new Point(int.Parse(split[0]), int.Parse(split[1]));
return new PointConverter().ConvertFromString(str) as Point? ?? new Point();
}
var point = new Point();