Пример #1
0
 public Task <byte[]> SerializeAsync(T obj)
 {
     return(Task.FromResult(serializer.Serialize(obj)));
 }
Пример #2
0
 public override byte[] Serialize(T obj)
 {
     return(serializer.Serialize(obj));
 }
Пример #3
0
 public byte[] Serialize(T obj)
 {
     return(serializer.Serialize(obj));
 }
Пример #4
0
 public override void Serialize(T obj, Stream ms)
 {
     serializer.Serialize(obj, ms);
 }