コード例 #1
0
        public byte[] SerializeBin(bool compress)
        {
            var ori = base.SerializeBin();

            if (compress)
            {
                var zip = DataCompress.ZipBin(ori);
                return(zip);
            }
            else
            {
                return(ori);
            }
        }
コード例 #2
0
        public new byte[] SerializeBin()
        {
            var ori = base.SerializeBin();

            if (needToCompress)
            {
                var zip = DataCompress.ZipBin(ori);
                return(zip);
            }
            else
            {
                return(ori);
            }
        }