Skip to content

UInt64Extensions.ResetBit Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
valueUInt64
indexInt32The zero-based bit index to reset.

Returns ​

UInt64

A new ulong with the specified bit cleared.