Int32Extensions.SetBit Method
Definition
Returns a new int with the bit at the specified index set.
public static int SetBit(this int value, int index);
Parameters
| Name | Type | Description |
|---|---|---|
| value | Int32 | |
| index | Int32 | The zero-based bit index to set. |
Returns
A new int with the specified bit set.