Microsoft.Protocols.TestSuites.MS_OXORULE.AddressBookTaggedPropertyValue.Serialize C# (CSharp) Method

Serialize() public method

Serialize the ROP request buffer.
public Serialize ( ) : byte[]
return byte[]
        public override byte[] Serialize()
        {
            int index = 0;
            byte[] resultBytes = new byte[this.Size()];
            if ((this.PropertyTag.PropertyType == 0x1e || this.PropertyTag.PropertyType == 0x1f || this.PropertyTag.PropertyType == 0x102) && this.Value.Length != 0)
            {
                Array.Copy(new byte[] { 0xff }, 0, resultBytes, index, sizeof(byte));
                index += sizeof(byte);
            }

            Array.Copy(this.PropertyTag.Serialize(), 0, resultBytes, index, this.PropertyTag.Size());
            index += this.PropertyTag.Size();
            Array.Copy(base.Serialize(), 0, resultBytes, index, base.Size());
            index += base.Size();
            return resultBytes;
        }
AddressBookTaggedPropertyValue