public byte ToByte() { List<byte> bytes = this.SerializeToByteList(); if (bytes.Count != 1) { throw new InvalidOperationException("The unexpected StreamObjectHeaderEnd8bit length"); } return bytes[0]; }