Click or drag to resize

NiceFormatterBits(UInt64) Method

Converts a UInt64 into a string of bits separated into byte groups.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public static string Bits(
	this ulong value
)

Parameters

value  UInt64
The value to convert to a bit string.

Return Value

String
A string representing 64 bits.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UInt64. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Example
C#
ulong u = 123456789012345;
Console.WriteLine(u.Bits());
// Produces…
// 00000000-00000000-01110000-01001000-10000110-00001101-11011111-01111001
See Also