BitOrchestra.Parser.IsDecimalDigit C# (CSharp) Method

IsDecimalDigit() public static method

Determines wether the given character is a decimal digit, if so, returns its value.
public static IsDecimalDigit ( char Char, int &Value ) : bool
Char char
Value int
return bool
        public static bool IsDecimalDigit(char Char, ref int Value)
        {
            int i = (int)Char;
            if (i >= 48 && i <= 57)
            {
                Value = i - 48;
                return true;
            }
            return false;
        }