Skip to content

UInt16Extensions.ResetBit Method ​

Definition ​

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

c#
public static ushort ResetBit(this ushort value, int index);

View source

Parameters ​

NameTypeDescription
valueUInt16
indexInt32The zero-based bit index to reset.

Returns ​

UInt16

A new UInt16 with the specified bit cleared.