BF2Statistics.BoolExtensions.ToInt32 C# (CSharp) Method

ToInt32() public static method

Converts the boolean value into an int. Returns 1 if the value is true, 0 otherwise
public static ToInt32 ( this value ) : int
value this
return int
        public static int ToInt32(this bool value)
        {
            return value ? 1 : 0;
        }
BoolExtensions