コード例 #1
0
            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));
            }
コード例 #2
0
            public static byte[] Serialize <T>(T objectToSerialize)
            {
                var s = new Gro.Serializer(new Gro.DataMembersExtracters.PropertiesExtractor(), options: Gro.GroBufOptions.None);

                return(s.Serialize(objectToSerialize));
            }