System.TermInfo.ParameterizedStrings.AsBool C# (CSharp) Méthode

AsBool() private static méthode

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.
Résultat bool
            private static bool AsBool(Int32 i) { return i != 0; }