Microsoft.Automata.MSO.Mona.Token.ToInt C# (CSharp) Method

ToInt() public method

public ToInt ( ) : int
return int
        public int ToInt()
        {
            int k = 0;
            if (TryGetInt(out k))
                return k;
            else
                throw new MonaParseException(MonaParseExceptionKind.InvalidIntegerFormat, location, string.Format("cannot convert token '{0}' to integer", text));
        }