Esempio n. 1
0
        public override void Deserialize(Stream stream, Type type, ref object value)
        {
            var underlyingType = Enum.GetUnderlyingType(type);

            PrimitiveSerializer.Read(stream, underlyingType, ref value);
        }
Esempio n. 2
0
        public override void Serialize(Stream stream, Type type, object value)
        {
            var underlyingType = Enum.GetUnderlyingType(type);

            PrimitiveSerializer.Write(stream, underlyingType, value);
        }