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