Ejemplo 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);
        }
Ejemplo n.º 2
0
        public override void Serialize(Stream stream, Type type, object value)
        {
            var underlyingType = Enum.GetUnderlyingType(type);

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