Beispiel #1
0
        // Token: 0x060015C9 RID: 5577 RVA: 0x00080D68 File Offset: 0x0007EF68
        public string SerializeAsBase64String()
        {
            ExTraceGlobals.MethodEnterExitTracer.TraceDebug((long)this.GetHashCode(), "SyncCalendarSyncStateBase.SerializeAsBase64String called.");
            ComponentDataPool componentDataPool = new ComponentDataPool();
            string            result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                using (BinaryWriter binaryWriter = new BinaryWriter(memoryStream))
                {
                    this.syncStateTable.SerializeData(binaryWriter, componentDataPool);
                    using (MemoryStream memoryStream2 = new MemoryStream())
                    {
                        memoryStream.Seek(0L, SeekOrigin.Begin);
                        SerializationHelper.Compress(memoryStream, memoryStream2);
                        result = Convert.ToBase64String(memoryStream2.ToArray());
                    }
                }
            }
            return(result);
        }