4 ms·
I've seen this in production code: public static bool ConvertToBoolean(this int number) { var TrueOrFalse = false; if(number != 0)
by LandR 5y ago
I've seen this in production code:
public static bool ConvertToBoolean(this int number)
{
var TrueOrFalse = false;
if(number != 0)
TrueOrFalse = true;
return TrueOrFalse;
}