Skip to content

UInt32Extensions.ToBinaryString Method ​

Definition ​

Converts a uint to its binary string representation, for example, "0b00000001000000100000001100000100".

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

View source

Parameters ​

NameTypeDescription
valueUInt32

Returns ​

String

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