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); } }
public byte[] Serialize() { return(FastSerialize.Serialize(this)); }