public void Serialize(ParticleObject part) { byte[] data = Encoding.ASCII.GetBytes(part.ParticleFile.PadRight(80, '\0')); writer.Write(data); Serialize(part.ParticlePosition); writer.Write(new byte[12]); }
public void Serialize(ParticleObject part) { writer.WriteElementString("filename", part.ParticleFile); writer.WriteStartElement("position"); Serialize(part.ParticlePosition); writer.WriteEndElement(); }