Skip to content

UInt16Extensions.ToBytes Method

Definition

Decomposes a UInt16 into its most and least significant bytes.

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

View source

Parameters

Name Type Description
value UInt16

Returns

ValueTuple<Byte, Byte>

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