Esempio n. 1
0
        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]);
        }
Esempio n. 2
0
 public void Serialize(ParticleObject part)
 {
     writer.WriteElementString("filename", part.ParticleFile);
     writer.WriteStartElement("position");
     Serialize(part.ParticlePosition);
     writer.WriteEndElement();
 }