Microsoft.Protocols.TestSuites.SharedAdapter.StreamObjectHeaderEnd8bit.ToByte C# (CSharp) Method

ToByte() public method

This method is used to get the byte value of the 8bit stream object header End.
public ToByte ( ) : byte
return byte
        public byte ToByte()
        {
            List<byte> bytes = this.SerializeToByteList();

            if (bytes.Count != 1)
            {
                throw new InvalidOperationException("The unexpected StreamObjectHeaderEnd8bit length");
            }

            return bytes[0];
        }