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

AsInt() static private méthode

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