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

Serialize() public method

Get serialized byte array for this structure
public Serialize ( ) : byte[]
return byte[]
        public override byte[] Serialize()
        {
            List<byte> bytes = new List<byte>
            {
                (byte)RestrictType, (byte)this.SubObject
            };
            bytes.AddRange(this.Restriction.Serialize());

            return bytes.ToArray();
        }