private ExtensionDataSetter method_3(Type type_0) { ExtensionDataSetter setter = null; foreach (Type type in this.method_10(type_0)) { IList <MemberInfo> list = new List <MemberInfo>(); list.smethod_1 <MemberInfo>(type.GetProperties(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)); list.smethod_1 <MemberInfo>(type.GetFields(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly)); using (IEnumerator <MemberInfo> enumerator2 = list.GetEnumerator()) { MemberInfo current; while (enumerator2.MoveNext()) { current = enumerator2.Current; MemberTypes types = current.smethod_1(); if (((types == MemberTypes.Property) || (types == MemberTypes.Field)) && current.IsDefined(typeof(JsonExtensionDataAttribute), false)) { Type type3; Type type2 = Class194.smethod_20(current); if (!Class194.smethod_14(type2, typeof(IDictionary <,>), out type3)) { goto Label_01AF; } Type type4 = type3.GetGenericArguments()[0]; Type type5 = type3.GetGenericArguments()[1]; if (Class194.smethod_12(type2, typeof(IDictionary <,>))) { type2 = typeof(Dictionary <,>).MakeGenericType(new Type[] { type4, type5 }); } if (!type4.IsAssignableFrom(typeof(string)) || !type5.IsAssignableFrom(typeof(JToken))) { goto Label_01AF; } Class126 class2 = new Class126(); MethodInfo method = type2.GetMethod("Add", new Type[] { type4, type5 }); class2.func_0 = Class139.Class166_0.method_0 <object>(current); class2.action_0 = Class139.Class166_0.method_1 <object>(current); class2.func_1 = Class139.Class166_0.ns20.Class166. <object>(type2); class2.delegate3_0 = Class139.Class166_0.ns20.Class166. <object>(method); setter = new ExtensionDataSetter(class2.method_0); } } continue; Label_01AF: throw new JsonException("Invalid extension data attribute on '{0}'. Member '{1}' type must implement IDictionary<string, JToken>.".smethod_1(CultureInfo.InvariantCulture, smethod_4(current.DeclaringType), current.Name)); } } return(setter); }
public static TimerClass smethod_6(TimeSpan timeSpan_2, TimeSpan timeSpan_3, int int_4, Delegate10 delegate10_0) { TimerClass class2 = new Class126(timeSpan_2, timeSpan_3, int_4, delegate10_0); if (int_4 == 1) { class2.Priority = smethod_3(timeSpan_2); } else { class2.Priority = smethod_3(timeSpan_3); } class2.method_1(); return(class2); }
// Token: 0x06002D77 RID: 11639 RVA: 0x000AEC3C File Offset: 0x000ACE3C public Class151() { this.class176_0 = Class176.Instance; Class126 @class = this.class126_0; EventHandler <EventArgs38> value = new EventHandler <EventArgs38>(this.method_20); @class.ProgressChanged += value; Class126 class2 = this.class126_0; EventHandler <EventArgs38> value2 = new EventHandler <EventArgs38>(this.method_21); class2.PipeServerDisconnected += value2; Class126 class3 = this.class126_0; EventHandler <EventArgs28> value3 = new EventHandler <EventArgs28>(this.method_22); class3.UpdateStepMismatch += value3; Class126 class4 = this.class126_0; EventHandler value4 = new EventHandler(this.method_23); class4.Canceled += value4; }
public abstract void Visit(Class126 c);
public override void Visit(Class126 c) { }
public static string RMBToDaXie(decimal decimal_0) { return(Class126.smethod_0(decimal_0)); }