ByteExtensions.GetBit Method ​
Definition ​
Gets the value of the bit at the specified index.
c#
public static bool GetBit(this Byte value, int index);Parameters ​
| Name | Type | Description |
|---|---|---|
value | Byte | The byte value. |
index | Int32 | The zero-based bit index. Must be in the range 0 to 7. |
Returns ​
true if the bit is set; false otherwise.