Exemple #1
0
            public static void Write <instantiatedClassT>(BinaryWriter writer, AbstractGraphElement <instantiatedClassT> ae)
            {
                writer.Write(Encoding.ASCII.GetBytes(ae.Name));

                writer.Write(Encoding.ASCII.GetBytes(ae.Description));
            }
Exemple #2
0
            public static void Read <instantiatedClassT>(BinaryReader reader, AbstractGraphElement <instantiatedClassT> ae)
            {
                ae.Name = Encoding.ASCII.GetString(reader.ReadBytes(reader.ReadInt32()));

                ae.Description = Encoding.ASCII.GetString(reader.ReadBytes(reader.ReadInt32()));
            }