System.TermInfo.ParameterizedStrings.AsBool C# (CSharp) Method

AsBool() private static method

Converts an Int32 to a Boolean, with 0 meaning false and all non-zero values meaning true.
private static AsBool ( Int32 i ) : bool
i Int32 The integer value to convert.
return bool
            private static bool AsBool(Int32 i) { return i != 0; }