Skip to content

UInt16Extensions.SetBit Method

Definition

Returns a new UInt16 with the bit at the specified index set.

public static ushort SetBit(this ushort value, int index);

View source

Parameters

Name Type Description
value UInt16
index Int32 The zero-based bit index to set.

Returns

UInt16

A new UInt16 with the specified bit set.