Method ToBool
ToBool(int)
Reinterprets the specified value as a boolean.
public static bool ToBool(this int value)
Parameters
valueintThe value to reinterpret.
Returns
- bool
False if the value is 0, true for any non-0 value.
Reinterprets the specified value as a boolean.
public static bool ToBool(this int value)
value intThe value to reinterpret.
False if the value is 0, true for any non-0 value.