UInt32Extensions Class ​
Definition ​
Extension methods for UInt32.
c#
public static class UInt32ExtensionsMethods ​
| Name | Description |
|---|---|
GetBit(UInt32, Int32) | Gets the value of the bit at the specified index. |
LeftMostBit(UInt32) | Gets the left-most bit (bit 31) of a uint. |
ResetBit(UInt32, Int32) | Returns a new uint with the bit at the specified index cleared. |
RightMostBit(UInt32) | Gets the right-most bit (bit 0) of a uint. |
SetBit(UInt32, Int32) | Returns a new uint with the bit at the specified index set. |
SignBit(UInt32) | Gets the sign bit (bit 31) of a uint. |
ToBinaryString(UInt32) | Converts a uint to its binary string representation, for example, "0b00000001000000100000001100000100". |