Skip to content

UInt16Extensions.ToBytes Method ​

Definition ​

Decomposes a UInt16 into its most and least significant bytes.

c#
public static ValueTuple<Byte, Byte> ToBytes(this ushort value);

View source

Parameters ​

NameTypeDescription
valueUInt16

Returns ​

ValueTuple<Byte, Byte>

A tuple of the most significant byte and least significant byte.