ByteExtensions.ResetBit Method
Definition
Returns a new byte with the bit at the specified index cleared.
public static Byte ResetBit(this Byte value, int index);
Parameters
| Name | Type | Description |
|---|---|---|
| value | Byte | The byte value. |
| index | Int32 | The zero-based bit index to reset. |
Returns
A new byte with the specified bit cleared.