// Token: 0x060000B6 RID: 182 RVA: 0x0000576D File Offset: 0x0000396D public static JsonValue Load(TextReader textReader) { if (textReader == null) { throw new ArgumentNullException("textReader"); } return(JsonValue.ToJsonValue <object>(new JavaScriptReader(textReader).Read())); }
// Token: 0x060000B8 RID: 184 RVA: 0x0000579D File Offset: 0x0000399D private static IEnumerable <JsonValue> ToJsonValueEnumerable(IEnumerable arr) { foreach (object ret in arr) { yield return(JsonValue.ToJsonValue <object>(ret)); } IEnumerator enumerator = null; yield break; yield break; }
// Token: 0x060000B7 RID: 183 RVA: 0x0000578D File Offset: 0x0000398D private static IEnumerable <KeyValuePair <string, JsonValue> > ToJsonPairEnumerable(IEnumerable <KeyValuePair <string, object> > kvpc) { foreach (KeyValuePair <string, object> keyValuePair in kvpc) { yield return(new KeyValuePair <string, JsonValue>(keyValuePair.Key, JsonValue.ToJsonValue <object>(keyValuePair.Value))); } IEnumerator <KeyValuePair <string, object> > enumerator = null; yield break; yield break; }
// Token: 0x0600007E RID: 126 RVA: 0x000050CD File Offset: 0x000032CD public static string ToJSON <T>(this T instance) { return(JsonValue.ToJsonValue <T>(instance)); }