1
Vote

Exception on parsing newline '\n'

description

When i tried to load a file which i created with 3ds Max into viewer, an exception was thrown about invalid data.
 
The third value of l[i]
[2] = "47.244095\n27.174582" while parsing: Parse(l[i]);
 
It seems that your library, does not consider to parse values which are separated with newline.
 
Edit: I suggest to change the Split line in ToArray() to
 
var l = value.Split(new char[] { ' ', '\n' }, StringSplitOptions.RemoveEmptyEntries);

comments