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