Skip to content

Int32Extensions.ToBinaryString Method

Definition

Converts an int to its binary string representation, e.g. "0b00000000000000000000000001011010".

public static string ToBinaryString(this int value);

View source

Parameters

Name Type Description
value Int32

Returns

String

A 34-character string prefixed with "0b" followed by 32 binary digits.