Example #1
0
 public byte[] SerializeTo(object obj)
 {
     return(ProtobufHelper.ToBytes(obj));
 }
Example #2
0
 public object Clone()
 {
     byte[] bytes = ProtobufHelper.ToBytes(this);
     return(ProtobufHelper.FromBytes(this.GetType(), bytes, 0, bytes.Length));
 }