Microsoft.Protocols.TestSuites.SharedAdapter.DataElementPackage.SerializeItemsToByteList C# (CSharp) Method

SerializeItemsToByteList() protected method

Used to return the length of this element.
protected SerializeItemsToByteList ( List byteList ) : int
byteList List A Byte list
return int
        protected override int SerializeItemsToByteList(List<byte> byteList)
        {
            // Add the reserved byte
            byteList.Add(0);

            foreach (DataElement dataElement in this.DataElements)
            {
                byteList.AddRange(dataElement.SerializeToByteList());
            }

            return 1;
        }