Converts the integer representation to a boolean.
public static bool ToBool(this int value)
0.ToBool(); 123.ToBool(); 1.ToBool();
false false true
Last updated 1 year ago