Exemplo n.º 1
0
        public static JArray Load(JsonReader reader)
        {
            if ((reader.JsonToken_0 == JsonToken.None) && !reader.Read())
            {
                throw JsonReaderException.smethod_1(reader, "Error reading JArray from JsonReader.");
            }
            while (reader.JsonToken_0 == JsonToken.Comment)
            {
                reader.Read();
            }
            if (reader.JsonToken_0 != JsonToken.StartArray)
            {
                throw JsonReaderException.smethod_1(reader, "Error reading JArray from JsonReader. Current JsonReader item is not an array: {0}".smethod_0(CultureInfo.InvariantCulture, reader.JsonToken_0));
            }
            JArray array = new JArray();

            array.method_0(reader as IJsonLineInfo);
            array.method_10(reader);
            return(array);
        }