Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.ModLinkAttRequestBody.Serialize C# (CSharp) Method

Serialize() public method

Serialize the instance to byte array.
public Serialize ( ) : byte[]
return byte[]
        public override byte[] Serialize()
        {
            List<byte> listByte = new List<byte>();

            listByte.AddRange(BitConverter.GetBytes(this.Flags));
            listByte.AddRange(this.PropertyTag.Serialize());

            listByte.AddRange(BitConverter.GetBytes(this.MinimalId));

            listByte.AddRange(BitConverter.GetBytes(this.HasEntryIds));
            if (this.HasEntryIds)
            {
                listByte.AddRange(BitConverter.GetBytes(this.EntryIdCount));
                for (int i = 0; i < this.EntryIDs.Length; i++)
                {
                    listByte.AddRange(this.EntryIDs[i]);
                }
            }

            listByte.AddRange(BitConverter.GetBytes(this.AuxiliaryBufferSize));
            listByte.AddRange(this.AuxiliaryBuffer);

            return listByte.ToArray();
        }
    }
ModLinkAttRequestBody