public void Serialize(Vertex2D vert) { writer.Write(vert.X); writer.Write(vert.Y); }
public void Serialize(Vertex2D vert) { NumberFormatInfo format = new NumberFormatInfo(); format.NumberDecimalSeparator = "."; format.NumberGroupSeparator = ","; writer.WriteElementString("x", vert.X.ToString("f4", format)); writer.WriteElementString("y", vert.Y.ToString("f4", format)); }