public byte[] SerializeBin(bool compress) { var ori = base.SerializeBin(); if (compress) { var zip = DataCompress.ZipBin(ori); return(zip); } else { return(ori); } }
public new byte[] SerializeBin() { var ori = base.SerializeBin(); if (needToCompress) { var zip = DataCompress.ZipBin(ori); return(zip); } else { return(ori); } }