예제 #1
0
 public void Serialize(Vertex2D vert)
 {
     writer.Write(vert.X);
     writer.Write(vert.Y);
 }
예제 #2
0
 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));
 }