Skip to content

Int64Extensions.ToBinaryString Method

Definition

Converts a long to its binary string representation, e.g. "0b0000000100000010000000110000010000000101000001100000011100001000".

public static string ToBinaryString(this long value);

View source

Parameters

Name Type Description
value Int64

Returns

String

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