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

AsInt() private static méthode

Converts a Boolean to an Int32, with true meaning 1 and false meaning 0.
private static AsInt ( bool b ) : int
b bool The Boolean value to convert.
Résultat int
            private static int AsInt(bool b) { return b ? 1 : 0; }