ToBool()

Converts the integer representation to a boolean.

Declaration
public static bool ToBool(this int value)
Example
0.ToBool();
123.ToBool();
1.ToBool();
Result
false
false
true

Last updated