parseNumber() защищенный статический Метод

protected static parseNumber ( char json, int &index ) : double
json char
index int
Результат double
Пример #1
0
    protected static object parseValue(char[] json, ref int index, ref bool success)
    {
        switch (MiniJSON.lookAhead(json, index))
        {
        case 1:
            return(MiniJSON.parseObject(json, ref index));

        case 3:
            return(MiniJSON.parseArray(json, ref index));

        case 7:
            return(MiniJSON.parseString(json, ref index));

        case 8:
            return(MiniJSON.parseNumber(json, ref index));

        case 9:
            MiniJSON.nextToken(json, ref index);
            return(bool.Parse("TRUE"));

        case 10:
            MiniJSON.nextToken(json, ref index);
            return(bool.Parse("FALSE"));

        case 11:
            MiniJSON.nextToken(json, ref index);
            return(null);
        }
        success = false;
        return(null);
    }