Exemple #1
0
            private SerializedEnum DeserializeEnum(BinaryReader reader)
            {
                var value = new SerializedEnum(DeserializeDefaults(reader));

                value.Value = reader.ReadInt32();
                return(value);
            }
Exemple #2
0
 private object ReadEnum(SerializedEnum value)
 {
     return(value.Value);
 }
 private void WriteEnum(BinaryWriter writer, SerializedEnum obj)
 {
     WriteDefaults(writer, obj);
     writer.Write((int)obj.Value);
 }