Skip to content

Int64Extensions.ToBinaryString Method ​

Definition ​

Converts a long to its binary string representation, for example, "0b0000000100000010000000110000010000000101000001100000011100001000".

c#
public static string ToBinaryString(this long value);

View source

Parameters ​

NameTypeDescription
valueInt64

Returns ​

String

A 66-character string prefixed with "0b" followed by 64 binary digits.