System.ParameterizedStrings.AsInt C# (CSharp) Method

AsInt() static private method

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.
return int
                static int AsInt(bool b) { return b ? 1 : 0; }