Skip to content

Int32Extensions.ResetBit Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
valueInt32
indexInt32The zero-based bit index to reset.

Returns ​

Int32

A new int with the specified bit cleared.