// Token: 0x06000669 RID: 1641 RVA: 0x000386D4 File Offset: 0x000368D4 private static Stream smethod_3(string string_0) { Assembly executingAssembly = Assembly.GetExecutingAssembly(); if (string_0.EndsWith(".compressed")) { Stream result; using (Stream manifestResourceStream = executingAssembly.GetManifestResourceStream(string_0)) { DeflateStream deflateStream = new DeflateStream(manifestResourceStream, CompressionMode.Decompress); try { MemoryStream memoryStream = new MemoryStream(); Class154.smethod_2(deflateStream, memoryStream); memoryStream.Position = 0L; result = memoryStream; } finally { ((IDisposable)deflateStream).Dispose(); } } return(result); } return(executingAssembly.GetManifestResourceStream(string_0)); }
// Token: 0x0600066D RID: 1645 RVA: 0x00038864 File Offset: 0x00036A64 public static Assembly smethod_7(object object_1, ResolveEventArgs resolveEventArgs_0) { object obj = Class154.object_0; lock (obj) { if (Class154.dictionary_0.ContainsKey(resolveEventArgs_0.Name)) { return(null); } } AssemblyName assemblyName = new AssemblyName(resolveEventArgs_0.Name); Assembly assembly = Class154.smethod_1(assemblyName); if (assembly != null) { return(assembly); } assembly = Class154.smethod_6(Class154.dictionary_1, Class154.dictionary_2, assemblyName); if (assembly == null) { obj = Class154.object_0; lock (obj) { Class154.dictionary_0[resolveEventArgs_0.Name] = true; } if ((assemblyName.Flags & AssemblyNameFlags.Retargetable) != AssemblyNameFlags.None) { assembly = Assembly.Load(assemblyName); } } return(assembly); }
// Token: 0x0600066C RID: 1644 RVA: 0x000387A4 File Offset: 0x000369A4 private static Assembly smethod_6(Dictionary <string, string> dictionary_3, Dictionary <string, string> dictionary_4, AssemblyName assemblyName_0) { string text = assemblyName_0.Name.ToLowerInvariant(); if (assemblyName_0.CultureInfo != null && !string.IsNullOrEmpty(assemblyName_0.CultureInfo.Name)) { text = string.Format("{0}.{1}", assemblyName_0.CultureInfo.Name, text); } byte[] rawAssembly; using (Stream stream = Class154.smethod_4(dictionary_3, text)) { if (stream == null) { return(null); } rawAssembly = Class154.smethod_5(stream); } using (Stream stream2 = Class154.smethod_4(dictionary_4, text)) { if (stream2 != null) { byte[] rawSymbolStore = Class154.smethod_5(stream2); return(Assembly.Load(rawAssembly, rawSymbolStore)); } } return(Assembly.Load(rawAssembly)); }
// Token: 0x0600066A RID: 1642 RVA: 0x0003875C File Offset: 0x0003695C private static Stream smethod_4(Dictionary <string, string> dictionary_3, string string_0) { string string_; if (dictionary_3.TryGetValue(string_0, out string_)) { return(Class154.smethod_3(string_)); } return(null); }
internal Class168() { this.class741_0 = new Class741(); this.class154_0 = new Class154(); this.class164_0 = new Class164(); this.hashtable_0 = new Hashtable(); this.arrayList_0 = new ArrayList(); this.arrayList_1 = new ArrayList(); this.hashtable_1 = new Hashtable(); this.hashtable_2 = new Hashtable(); this.hashtable_3 = new Hashtable(); }
DynamicMetaObject DynamicMetaObject.BindGetIndex(GetIndexBinder binder, DynamicMetaObject[] indexes) { Class154 <T> class2 = new Class154 <T> { getIndexBinder_0 = binder, dynamicMetaObject_0 = indexes, class143_0 = (Class143 <T>) this }; if (!this.method_0("TryGetIndex")) { return(base.BindGetIndex(class2.getIndexBinder_0, class2.dynamicMetaObject_0)); } return(this.method_1("TryGetIndex", class2.getIndexBinder_0, Class143 <T> .smethod_1(class2.dynamicMetaObject_0), new Delegate2 <T>(class2.method_0), null)); }
internal Class168(Class703 A_0, BinaryReader A_1) { this.class741_0 = new Class741(); this.class154_0 = new Class154(); this.class164_0 = new Class164(); this.hashtable_0 = new Hashtable(); this.arrayList_0 = new ArrayList(); this.arrayList_1 = new ArrayList(); this.hashtable_1 = new Hashtable(); this.hashtable_2 = new Hashtable(); this.hashtable_3 = new Hashtable(); if (A_0.class929_0.class1111_6.int_1 != 0) { this.method_0(A_1, A_0.class929_0.class1111_6); this.class154_0.method_23(A_1, A_0.class929_0.class1111_7); this.class164_0.method_23(A_1, A_0.class929_0.class1111_9); this.method_1(A_1, A_0.class929_0.class1111_10); } }
public abstract void Visit(Class154 c);
public override void Visit(Class154 c) { }
// Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364 public static Class139 smethod_1(object object_0, Type type_0) { Class139 @class = object_0 as Class139; if (@class != null) { return(@class); } if (type_0 == null) { if (object_0 == null) { return(new Class166()); } type_0 = object_0.GetType(); } type_0 = Class102.smethod_1(type_0); if (type_0 == Class28.type_0) { @class = new Class166(); if (object_0 != null && object_0.GetType() != Class28.type_0) { @class.method_1(object_0.GetType()); } } else if (Class99.smethod_0 <Array>(type_0)) { @class = new Class140(); } else if (Class99.smethod_0 <string>(type_0)) { @class = new Class143(); } else if (Class99.smethod_0 <IntPtr>(type_0)) { @class = new Class146(); } else if (Class99.smethod_0 <UIntPtr>(type_0)) { @class = new Class157(); } else if (Class99.smethod_0 <ulong>(type_0)) { @class = new Class165(); } else if (Class99.smethod_0 <uint>(type_0)) { @class = new Class163(); } else if (Class99.smethod_0 <ushort>(type_0)) { @class = new Class159(); } else if (Class99.smethod_0 <long>(type_0)) { @class = new Class156(); } else if (Class99.smethod_0 <int>(type_0)) { @class = new Class145(); } else if (Class99.smethod_0 <short>(type_0)) { @class = new Class141(); } else if (Class99.smethod_0 <byte>(type_0)) { @class = new Class164(); } else if (Class99.smethod_0 <sbyte>(type_0)) { @class = new Class161(); } else if (Class99.smethod_0 <double>(type_0)) { @class = new Class158(); } else if (Class99.smethod_0 <float>(type_0)) { @class = new Class162(); } else if (Class99.smethod_0 <bool>(type_0)) { @class = new Class144(); } else if (Class99.smethod_0 <char>(type_0)) { @class = new Class155(); } else if (Class28.smethod_0(type_0)) { Class166 class2 = new Class166(); class2.method_1(type_0); @class = class2; } else { if (Class99.smethod_0 <Enum>(type_0)) { Enum enum_; if (object_0 == null) { if (type_0 == Class28.type_2) { enum_ = null; } else { enum_ = (Enum)Activator.CreateInstance(type_0); } } else if (type_0 == Class28.type_2 && object_0 is Enum) { enum_ = (Enum)object_0; } else { enum_ = (Enum)Enum.ToObject(type_0, object_0); } return(new Class160(enum_)); } if (Class99.smethod_0 <ValueType>(type_0)) { if (object_0 == null) { object object_; if (type_0 == Class28.type_3) { object_ = null; } else { object_ = Activator.CreateInstance(type_0); } @class = new Class154(object_); } else { if (object_0.GetType() != type_0) { try { object_0 = Convert.ChangeType(object_0, type_0); } catch { } } @class = new Class154(object_0); } return(@class); } @class = new Class166(); } if (object_0 != null) { @class.vmethod_1(object_0); } return(@class); }
public static Class156 IHeader7(ushort ushort_0) { Class154 class2 = new Class154(ushort_0); return(new Class156(new IHeader1(7, byte_0, (ushort)class2.BodyTotalLength), class2)); }
// Token: 0x06000667 RID: 1639 RVA: 0x00038638 File Offset: 0x00036838 private static Assembly smethod_1(AssemblyName assemblyName_0) { foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) { AssemblyName name = assembly.GetName(); if (string.Equals(name.Name, assemblyName_0.Name, StringComparison.InvariantCultureIgnoreCase) && string.Equals(Class154.smethod_0(name.CultureInfo), Class154.smethod_0(assemblyName_0.CultureInfo), StringComparison.InvariantCultureIgnoreCase)) { return(assembly); } } return(null); }
private void udpClient_DataReceived(IPEndPoint ipendPoint_0, byte[] byte_0) { try { IHeader1 class2 = IHeader1.smethod_0(byte_0); if (class2 != null) { if (class2.method_0() == 0) { IPEndPointBody class4 = IPEndPointBody.smethod_0(byte_0, 4, class2.method_4()); this.OnUdpSessionOpened(class2.method_2(), class4.method_0(), ipendPoint_0, new AgileIPE(class4.method_2(), class4.method_4())); } else if (class2.method_0() == 1) { this.OnUdpSessionOpened(ipendPoint_0, StringBody.smethod_0(byte_0, 4, class2.method_4()).method_0()); } else { Class100 class3; if (class2.method_0() == 2) { class3 = this.safeDictionary_1.Get(ipendPoint_0); if ((class3 != null) && (class3.method_1() == class2.method_2())) { DataFragmentBody class7 = DataFragmentBody.smethod_0(byte_0, 4, class2.method_4()); class3.method_8(class7); } } else if (class2.method_0() == 4) { FeedbackVacancyBody body = FeedbackVacancyBody.Parse(byte_0, 4, class2.method_4()); Class116 class5 = this.safeDictionary_0.Get(ipendPoint_0); if (class5 != null) { class5.method_18(body, true); } } else if (class2.method_0() == 5) { this.method_2(ipendPoint_0); } else if (class2.method_0() == 6) { class3 = this.safeDictionary_1.Get(ipendPoint_0); if (class3 != null) { class3.method_9(); } } else if (class2.method_0() == 7) { class3 = this.safeDictionary_1.Get(ipendPoint_0); if ((class3 != null) && (class3.method_1() == class2.method_2())) { Class154 class8 = Class154.smethod_0(byte_0, 4, class2.method_4()); ushort num = (ushort)(0x2c + class8.BodyTotalLength); this.class32_0.imethod_2(class3.imethod_2(), num); } } } } } catch (Exception exception) { this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Udp.Reliable.ReliableUdpEngine.udpClient_DataReceived", ErrorLevel.Standard); } }