Пример #1
0
 public override T Deserialize(dynamic bytes)
 {
     using (var ms = new MemoryStream((byte[])bytes))
     {
         return(serializer.Deserialize <T>(ms));
     }
 }
Пример #2
0
        public InheritedEntity DeserializeAvroMsft(byte[] bytes)
        {
            var serializer = new AvroSerializer(typeof(InheritedEntity));

            using (var ms = new MemoryStream(bytes))
            {
                return(serializer.Deserialize <InheritedEntity>(ms));
            }
        }
Пример #3
0
        public InheritedEntity DeserializeAvroMsft(byte[] bytes)
        {
            var serializer = new AvroSerializer(typeof(InheritedEntity));

            using (var ms = new MemoryStream(bytes))
            {
                return serializer.Deserialize<InheritedEntity>(ms);
            }
        }