Skip to content

EndianExtensions.ToUInt16 Method ​

Definition ​

Composes a UInt16 (UInt16) from two bytes.

c#
public static ushort ToUInt16(this Endian endian, Byte byte0, Byte byte1);

View source

Parameters ​

NameTypeDescription
endianEndian
byte0ByteThe first byte.
byte1ByteThe second byte.

Returns ​

UInt16

The composed UInt16.