示例#1
0
 public static bool TryFromBytes(byte[] bytes, out T t)
 {
     try
     {
         t = FastSerialize.Deserialize <T>(bytes);
         return(t.Check);
     }
     catch (Exception ex)
     {
         t = default(T);
         return(false);
     }
 }
示例#2
0
 public byte[] Serialize()
 {
     return(FastSerialize.Serialize(this));
 }