// Token: 0x06000EAA RID: 3754 RVA: 0x0004D62C File Offset: 0x0004B82C private T gmethod_2643 <T>(object obje_0) { Class_517.ArgumentNotNull(obje_0, "value"); Class_362 class_ = (Class_362)obje_0; return((T)((object)Convert.ChangeType(class_.prop_2, typeof(T), CultureInfo.InvariantCulture))); }
// Token: 0x060014D9 RID: 5337 RVA: 0x000607A6 File Offset: 0x0005E9A6 public Class_459 cmethod_3814(Type arg_0, Class_435 arg_1, bool bool_0) { Class_517.ArgumentNotNull(arg_0, "type"); Class_517.ArgumentNotNull(arg_1, "resolver"); this.field_1 = arg_1; return(this.lmethod_3818(arg_0, (!bool_0) ? Class_364.Always : Class_364.Default, false)); }
// Token: 0x060011A1 RID: 4513 RVA: 0x0005719C File Offset: 0x0005539C internal static IEnumerable <U> Values <T, U>(this IEnumerable <T> source, object key) where T : Class_361 { Class_517.ArgumentNotNull(source, "source"); foreach (T t2 in source) { Class_361 token = t2; if (key == null) { if (token is Class_362) { yield return(((Class_362)token).Convert <Class_362, U>()); } else { foreach (Class_361 t in token.pmethod_2469()) { yield return(t.Convert <Class_361, U>()); } } } else { Class_361 value = token.cmethod_2464(key); if (value != null) { yield return(value.Convert <Class_361, U>()); } } } yield break; }
// Token: 0x06001503 RID: 5379 RVA: 0x00061434 File Offset: 0x0005F634 protected Class_465(Class_418 arg_0) { Class_517.ArgumentNotNull(arg_0, "serializer"); this.field_3 = arg_0; this.field_4 = arg_0.prop_2; this.field_2 = (base.GetType() == typeof(Class_467)); }
// Token: 0x06000BDD RID: 3037 RVA: 0x0004252D File Offset: 0x0004072D public void pmethod_2129(string str_0, string str_1) { Class_517.ArgumentNotNull(str_0, "pattern"); base.xmethod_2001(); base.tmethod_2032(Class_508.Undefined); this.cmethod_2104(new Class_293(str_0, str_1)); }
// Token: 0x06000CC4 RID: 3268 RVA: 0x00045CC5 File Offset: 0x00043EC5 public Class_335(string str_0) { Class_517.ArgumentNotNull(str_0, "expression"); this.field_0 = str_0; this.prop_0 = new List <Class_329>(); this.smethod_2270(); }
// Token: 0x06000AFC RID: 2812 RVA: 0x0003F9A5 File Offset: 0x0003DBA5 public Class_286(BinaryReader arg_0, bool bool_0, DateTimeKind arg_1) { Class_517.ArgumentNotNull(arg_0, "reader"); this.field_5 = arg_0; this.field_6 = new List <Class_286.NClass_1>(); this.field_12 = bool_0; this.field_14 = arg_1; }
// Token: 0x06000AFB RID: 2811 RVA: 0x0003F96D File Offset: 0x0003DB6D public Class_286(Stream stream_, bool bool_0, DateTimeKind arg_0) { Class_517.ArgumentNotNull(stream_, "stream"); this.field_5 = new BinaryReader(stream_); this.field_6 = new List <Class_286.NClass_1>(); this.field_12 = bool_0; this.field_14 = arg_0; }
// Token: 0x060014B8 RID: 5304 RVA: 0x0005F5F0 File Offset: 0x0005D7F0 public void vmethod_3785(Class_296 arg_0, Class_435 arg_1) { Class_517.ArgumentNotNull(arg_0, "writer"); Class_517.ArgumentNotNull(arg_1, "resolver"); Class_436 class_ = new Class_436(arg_0, arg_1); class_.gmethod_3533(this); }
// Token: 0x060014B4 RID: 5300 RVA: 0x0005F550 File Offset: 0x0005D750 public static Class_459 xmethod_3781(Class_285 arg_0, Class_435 arg_1) { Class_517.ArgumentNotNull(arg_0, "reader"); Class_517.ArgumentNotNull(arg_1, "resolver"); Class_460 class_ = new Class_460(arg_1); return(class_.smethod_3790(arg_0)); }
// Token: 0x060014E9 RID: 5353 RVA: 0x00061180 File Offset: 0x0005F380 public void nmethod_4(Type arg_0, Class_459 arg_1) { base..ctor(); Class_517.ArgumentNotNull(arg_0, "type"); Class_517.ArgumentNotNull(arg_1, "schema"); this.nprop_0 = arg_0; this.nprop_1 = arg_1; }
// Token: 0x06000EA8 RID: 3752 RVA: 0x0004D5B4 File Offset: 0x0004B7B4 internal bool tmethod_2642(IDynamicMetaObjectProvider arg_0, string str_0, object obje_0) { Class_517.ArgumentNotNull(arg_0, "dynamicProvider"); CallSite <Func <CallSite, object, object, object> > callSite = this.field_1.Get(str_0); object objA = callSite.Target(callSite, arg_0, obje_0); return(!object.ReferenceEquals(objA, Class_479.field_0)); }
// Token: 0x06000EA9 RID: 3753 RVA: 0x0004D5F6 File Offset: 0x0004B7F6 public Class_366(Class_466 arg_0, Class_367 arg_1, Class_454 arg_2) { Class_517.ArgumentNotNull(arg_0, "serializer"); Class_517.ArgumentNotNull(arg_1, "contract"); this.field_0 = arg_0; this.field_1 = arg_1; this.field_2 = arg_2; }
// Token: 0x060011E4 RID: 4580 RVA: 0x0005815C File Offset: 0x0005635C internal virtual void kmethod_3217(Class_361 arg_0, Class_361 arg_1) { Class_517.ArgumentNotNull(arg_0, "o"); if (arg_0.prop_3 == Class_428.Property) { throw new ArgumentException("Can not add {0} to {1}.".FormatWith(CultureInfo.InvariantCulture, arg_0.GetType(), base.GetType())); } }
// Token: 0x06000BE0 RID: 3040 RVA: 0x00042566 File Offset: 0x00040766 public Class_298(byte[] byteDizi_0) { Class_517.ArgumentNotNull(byteDizi_0, "value"); if (byteDizi_0.Length != 12) { throw new ArgumentException("An ObjectId must be 12 bytes", "value"); } this.prop_0 = byteDizi_0; }
// Token: 0x060011A4 RID: 4516 RVA: 0x000571F4 File Offset: 0x000553F4 internal static IEnumerable <U> Convert <T, U>(this IEnumerable <T> source) where T : Class_361 { Class_517.ArgumentNotNull(source, "source"); foreach (T token in source) { yield return(token.Convert <Class_361, U>()); } yield break; }
// Token: 0x06000EAC RID: 3756 RVA: 0x0004D6BA File Offset: 0x0004B8BA public object vmethod_2645(object obje_0, TypeCode arg_0) { Class_517.ArgumentNotNull(obje_0, "value"); if (obje_0 is Class_362) { obje_0 = ((Class_362)obje_0).prop_2; } return(Convert.ChangeType(obje_0, arg_0, CultureInfo.InvariantCulture)); }
// Token: 0x060011C8 RID: 4552 RVA: 0x00057940 File Offset: 0x00055B40 internal Class_420(Class_420 arg_0) : this() { Class_517.ArgumentNotNull(arg_0, "c"); int num = 0; foreach (Class_361 obje_ in ((IEnumerable <Class_361>)arg_0)) { this.xmethod_3221(num, obje_, false); num++; } }
// Token: 0x060014B6 RID: 5302 RVA: 0x0005F590 File Offset: 0x0005D790 public static Class_459 gmethod_3783(string str_0, Class_435 arg_0) { Class_517.ArgumentNotNull(str_0, "json"); Class_459 result; using (Class_285 class_ = new Class_409(new StringReader(str_0))) { result = Class_459.xmethod_3781(class_, arg_0); } return(result); }
// Token: 0x060011A0 RID: 4512 RVA: 0x00057164 File Offset: 0x00055364 public static U Value <T, U>(this IEnumerable <T> value) where T : Class_361 { Class_517.ArgumentNotNull(value, "source"); Class_361 class_ = value as Class_361; if (class_ == null) { throw new ArgumentException("Source value must be a JToken."); } return(class_.Convert <Class_361, U>()); }
// Token: 0x06000BDC RID: 3036 RVA: 0x000424F3 File Offset: 0x000406F3 public void lmethod_2128(byte[] byteDizi_0) { Class_517.ArgumentNotNull(byteDizi_0, "value"); if (byteDizi_0.Length != 12) { throw Class_413.smethod_3090(this, "An object id must be 12 bytes", null); } base.xmethod_2001(); base.tmethod_2032(Class_508.Undefined); this.gmethod_2103(byteDizi_0, Class_295.Oid); }
// Token: 0x06000EAB RID: 3755 RVA: 0x0004D66C File Offset: 0x0004B86C public object cmethod_2644(object obje_0, Type arg_0) { Class_517.ArgumentNotNull(obje_0, "value"); Class_361 class_ = obje_0 as Class_361; if (class_ == null) { throw new ArgumentException("Value is not a JToken.", "value"); } return(this.field_0.gmethod_3883(class_, arg_0, this.field_1, this.field_2)); }
// Token: 0x06000EA7 RID: 3751 RVA: 0x0004D568 File Offset: 0x0004B768 internal bool xmethod_2641(IDynamicMetaObjectProvider arg_0, string str_0, out object arg_1) { Class_517.ArgumentNotNull(arg_0, "dynamicProvider"); CallSite <Func <CallSite, object, object> > callSite = this.field_0.Get(str_0); object obj = callSite.Target(callSite, arg_0); if (!object.ReferenceEquals(obj, Class_479.field_0)) { arg_1 = obj; return(true); } arg_1 = null; return(false); }
// Token: 0x0600131A RID: 4890 RVA: 0x0005AD60 File Offset: 0x00058F60 public static void Validate(this Class_361 source, Class_459 schema, Class_439 validationEventHandler) { Class_517.ArgumentNotNull(source, "source"); Class_517.ArgumentNotNull(schema, "schema"); using (Class_381 class_ = new Class_381(source.lmethod_2558())) { class_.prop_8 = schema; if (validationEventHandler != null) { class_.ValidationEventHandler += validationEventHandler; } while (class_.vmethod_1885()) { } } }
// Token: 0x06001122 RID: 4386 RVA: 0x000559E8 File Offset: 0x00053BE8 public static object DeserializeObject(string value, Type type, Class_380 settings) { Class_517.ArgumentNotNull(value, "value"); Class_418 class_ = Class_418.tmethod_3162(settings); if (!class_.pmethod_3159()) { class_.prop_26 = true; } object result; using (Class_409 class_2 = new Class_409(new StringReader(value))) { result = class_.smethod_3170(class_2, type); } return(result); }
// Token: 0x06000D28 RID: 3368 RVA: 0x00047C64 File Offset: 0x00045E64 internal Class_349(Type arg_0) { Class_517.ArgumentNotNull(arg_0, "underlyingType"); this.prop_0 = arg_0; this.field_0 = Class_514.IsNullable(arg_0); this.field_3 = ((this.field_0 && Class_514.IsNullableType(arg_0)) ? Nullable.GetUnderlyingType(arg_0) : arg_0); this.prop_1 = this.field_3; this.field_1 = Class_499.IsConvertible(this.field_3); this.field_2 = this.field_3.IsEnum; if (this.field_3 == typeof(byte[])) { this.field_4 = Class_408.ReadAsBytes; return; } if (this.field_3 == typeof(int)) { this.field_4 = Class_408.ReadAsInt32; return; } if (this.field_3 == typeof(decimal)) { this.field_4 = Class_408.ReadAsDecimal; return; } if (this.field_3 == typeof(string)) { this.field_4 = Class_408.ReadAsString; return; } if (this.field_3 == typeof(DateTime)) { this.field_4 = Class_408.ReadAsDateTime; return; } if (this.field_3 == typeof(DateTimeOffset)) { this.field_4 = Class_408.ReadAsDateTimeOffset; return; } this.field_4 = Class_408.Read; }
// Token: 0x0600125F RID: 4703 RVA: 0x0005952C File Offset: 0x0005772C public static Class_423 pmethod_3309(Class_285 arg_0) { Class_517.ArgumentNotNull(arg_0, "reader"); if (arg_0.prop_9 == Class_508.None && !arg_0.vmethod_1885()) { throw Class_414.lmethod_3098(arg_0, "Error reading JObject from JsonReader."); } while (arg_0.prop_9 == Class_508.Comment) { arg_0.vmethod_1885(); } if (arg_0.prop_9 != Class_508.StartObject) { throw Class_414.lmethod_3098(arg_0, "Error reading JObject from JsonReader. Current JsonReader item is not an object: {0}".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_9)); } Class_423 class_ = new Class_423(); class_.lmethod_2568(arg_0 as Class_353); class_.pmethod_3229(arg_0); return(class_); }
// Token: 0x06001252 RID: 4690 RVA: 0x000591A0 File Offset: 0x000573A0 internal virtual void dmethod_3296(Class_361 arg_0, Class_361 arg_1) { Class_517.ArgumentNotNull(arg_0, "o"); if (arg_0.prop_3 != Class_428.Property) { throw new ArgumentException("Can not add {0} to {1}.".FormatWith(CultureInfo.InvariantCulture, arg_0.GetType(), base.GetType())); } Class_427 class_ = (Class_427)arg_0; if (arg_1 != null) { Class_427 class_2 = (Class_427)arg_1; if (class_.prop_1 == class_2.prop_1) { return; } } if (this.field_0.pmethod_2239(class_.prop_1, out arg_1)) { throw new ArgumentException("Can not add property {0} to {1}. Property with the same name already exists on object.".FormatWith(CultureInfo.InvariantCulture, class_.prop_1, base.GetType())); } }
// Token: 0x06001185 RID: 4485 RVA: 0x00056740 File Offset: 0x00054940 internal virtual void dmethod_3166(Class_285 arg_0, object obje_0) { Class_517.ArgumentNotNull(arg_0, "reader"); Class_517.ArgumentNotNull(obje_0, "target"); CultureInfo arg_; Class_321? arg_2; Class_320? arg_3; Class_315? arg_4; int? arg_5; string str_; this.tmethod_3172(arg_0, out arg_, out arg_2, out arg_3, out arg_4, out arg_5, out str_); Class_354 class_ = (this.prop_2 != null && this.prop_2.prop_0 >= TraceLevel.Verbose) ? new Class_354(arg_0) : null; Class_466 class_2 = new Class_466(this); class_2.xmethod_3851(class_ ?? arg_0, obje_0); if (class_ != null) { this.prop_2.gmethod_2303(TraceLevel.Verbose, "Deserialized JSON: " + Environment.NewLine + class_.xmethod_2371(), null); } this.gmethod_3173(arg_0, arg_, arg_2, arg_3, arg_4, arg_5, str_); }
// Token: 0x0600118A RID: 4490 RVA: 0x00056830 File Offset: 0x00054A30 internal virtual object xmethod_3171(Class_285 arg_0, Type arg_1) { Class_517.ArgumentNotNull(arg_0, "reader"); CultureInfo arg_2; Class_321? arg_3; Class_320? arg_4; Class_315? arg_5; int? arg_6; string str_; this.tmethod_3172(arg_0, out arg_2, out arg_3, out arg_4, out arg_5, out arg_6, out str_); Class_354 class_ = (this.prop_2 != null && this.prop_2.prop_0 >= TraceLevel.Verbose) ? new Class_354(arg_0) : null; Class_466 class_2 = new Class_466(this); object result = class_2.gmethod_3853(class_ ?? arg_0, arg_1, this.prop_26); if (class_ != null) { this.prop_2.gmethod_2303(TraceLevel.Verbose, "Deserialized JSON: " + Environment.NewLine + class_.xmethod_2371(), null); } this.gmethod_3173(arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, str_); return(result); }