Skip to content

Int64Extensions.ResetBit Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
valueInt64
indexInt32The zero-based bit index to reset.

Returns ​

Int64

A new long with the specified bit cleared.