Skip to content

BoolExtensions.ToBitChar Method ​

Definition ​

Converts a Boolean to a bit character, that is, '1' for true and '0' for false.

c#
public static char ToBitChar(this bool value);

View source

Parameters ​

NameTypeDescription
valueBooleanThe value to convert.

Returns ​

Char

The bit character.