public static byte[] Serialize(Type type, object objectToSerialize, bool compress = true) { var s = new Gro.Serializer(new Gro.DataMembersExtracters.PropertiesExtractor(), options: Gro.GroBufOptions.None); return(s.Serialize(objectToSerialize)); }
public static byte[] Serialize <T>(T objectToSerialize) { var s = new Gro.Serializer(new Gro.DataMembersExtracters.PropertiesExtractor(), options: Gro.GroBufOptions.None); return(s.Serialize(objectToSerialize)); }