BF2Statistics.BoolExtensions.ToInt32 C# (CSharp) Метод

ToInt32() публичный статический Метод

Converts the boolean value into an int. Returns 1 if the value is true, 0 otherwise
public static ToInt32 ( this value ) : int
value this
Результат int
        public static int ToInt32(this bool value)
        {
            return value ? 1 : 0;
        }
BoolExtensions