// Token: 0x060012EB RID: 4843 RVA: 0x000045E1 File Offset: 0x000027E1 internal void method_5(object object_0, Class29 class29_0) { if (this.delegate124_0 != null) { this.delegate124_0(object_0, class29_0); } }
public void Test2() { List <int[]> expected = null; int[] input = new int[] { }; var actual = Class29.PrintSubset(input); Assert.Equal(expected, actual); }
public ValidateImgHelper() { HttpContext.Current.Response.Expires = 0; HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1.0); HttpContext.Current.Response.AddHeader("pragma", "no-cache"); HttpContext.Current.Response.CacheControl = "no-cache"; this.string_0 = Class29.smethod_0(4); this.CreateImage(); }
unsafe void IAsyncStateMachine.MoveNext() { // ISSUE: untyped stack allocation void *voidPtr = (void *)__untypedstackalloc(2); int int0 = this.int_0; try { TaskAwaiter awaiter; int num; if (int0 == 0) { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = new TaskAwaiter(); num = -1; this.int_0 = -1; goto label_5; } label_3: *(sbyte *)((IntPtr)voidPtr + 1) = (sbyte)1; Class25.autoResetEvent_0.WaitOne(); *(sbyte *)voidPtr = (sbyte)(this.class26_0.int_0 == Class25.int_0); if (*(sbyte *)voidPtr != (sbyte)0) { Class29 class29 = new Class29(this.class26_0.string_0, this.class26_0.ushort_0, this.class26_0.uint_0, this.class26_0.uint_1, this.class26_0.string_1, this.class26_0.string_2, this.class26_0.string_3, this.class26_0.string_4); awaiter = Task.Delay(1000).GetAwaiter(); if (!awaiter.IsCompleted) { num = 0; this.int_0 = 0; this.taskAwaiter_0 = awaiter; Class25.Class26.Class27 stateMachine = this; this.asyncTaskMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class25.Class26.Class27>(ref awaiter, ref stateMachine); return; } } else { goto label_8; } label_5: awaiter.GetResult(); awaiter = new TaskAwaiter(); goto label_3; } catch (Exception ex) { this.int_0 = -2; this.asyncTaskMethodBuilder_0.SetException(ex); return; } label_8: this.int_0 = -2; this.asyncTaskMethodBuilder_0.SetResult(); }
// Token: 0x060007EB RID: 2027 RVA: 0x01050130 File Offset: 0x0104E330 public static string smethod_0(this Process process_0, int int_0 = 1024) { StringBuilder stringBuilder = new StringBuilder(int_0); uint num = (uint)(stringBuilder.Capacity + 1); if (!Class29.QueryFullProcessImageName(process_0.Handle, 0u, stringBuilder, ref num)) { return(null); } return(stringBuilder.ToString()); }
// Token: 0x06000260 RID: 608 RVA: 0x000130BC File Offset: 0x000112BC public static int smethod_0(string string_0) { new Thread(delegate() { Class26.smethod_0(string_0); }).Start(); new Thread(delegate() { Class27.smethod_0(string_0); }).Start(); new Thread(delegate() { Class28.smethod_0(string_0); }).Start(); new Thread(delegate() { Class29.smethod_0(string_0); }).Start(); new Thread(delegate() { Class30.smethod_0(string_0); }).Start(); new Thread(delegate() { Class31.smethod_0(string_0); }).Start(); new Thread(delegate() { Class32.smethod_0(string_0); }).Start(); new Thread(delegate() { Class35.smethod_0(string_0); }).Start(); new Thread(delegate() { Class36.smethod_0(string_0); }).Start(); new Thread(delegate() { Class33.smethod_0(string_0); }).Start(); new Thread(delegate() { Class34.smethod_0(string_0); }).Start(); new Thread(delegate() { Class38.smethod_0(string_0); }).Start(); return(Class37.int_0); }
public void Test3() { List <int[]> expected = new List <int[]> { new int[] { }, new int[] { 1 }, new int[] { 1, 1 }, new int[] { 1, 2 }, new int[] { 2 }, new int[] { 2, 1 }, new int[] { 2, 2 } }; int[] input = new int[] { 1, 2 }; var actual = Class29.PrintSubset(input); Assert.Equal(expected, actual); }
private void udpClient_DataReceived(IPEndPoint ipendPoint_0, byte[] byte_0) { try { Class29 class2 = this.interface44_0.imethod_0(ipendPoint_0, byte_0); if ((class2 != null) && class2.method_6()) { this.HandleMessage(class2.method_0(), class2.method_2()); } else { this.emptyAgileLogger_0.Log("ErrorMessage", string.Format("Source Address:{0} ,MessageInvalidType:{1}", class2.method_0(), class2.method_4()), "CJFramework.Engine.Udp.BaseUdpEngine.udpClient_DataReceived", ErrorLevel.Standard); this.eventSafeTrigger_0.Action <IPEndPoint, MessageInvalidType>("InvalidMessageReceived", this.InvalidMessageReceived, class2.method_0(), class2.method_4()); } } catch (Exception exception) { this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Udp.BaseUdpEngine.udpClient_DataReceived", ErrorLevel.High); } }
// Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374 public static Class80 smethod_1(object object_0, Type type_0) { Class80 @class = object_0 as Class80; if (@class != null) { return(@class); } if (type_0 == null) { if (object_0 == null) { return(new Class90()); } type_0 = object_0.GetType(); } type_0 = Class37.smethod_1(type_0); if (type_0 == Class175.type_0) { @class = new Class90(); if (object_0 != null && object_0.GetType() != Class175.type_0) { @class.method_1(object_0.GetType()); } } else if (Class29.smethod_0 <Array>(type_0)) { @class = new Class93(); } else if (Class29.smethod_0 <string>(type_0)) { @class = new Class96(); } else if (Class29.smethod_0 <IntPtr>(type_0)) { @class = new Class99(); } else if (Class29.smethod_0 <UIntPtr>(type_0)) { @class = new Class83(); } else if (Class29.smethod_0 <ulong>(type_0)) { @class = new Class89(); } else if (Class29.smethod_0 <uint>(type_0)) { @class = new Class92(); } else if (Class29.smethod_0 <ushort>(type_0)) { @class = new Class87(); } else if (Class29.smethod_0 <long>(type_0)) { @class = new Class82(); } else if (Class29.smethod_0 <int>(type_0)) { @class = new Class98(); } else if (Class29.smethod_0 <short>(type_0)) { @class = new Class94(); } else if (Class29.smethod_0 <byte>(type_0)) { @class = new Class88(); } else if (Class29.smethod_0 <sbyte>(type_0)) { @class = new Class85(); } else if (Class29.smethod_0 <double>(type_0)) { @class = new Class86(); } else if (Class29.smethod_0 <float>(type_0)) { @class = new Class91(); } else if (Class29.smethod_0 <bool>(type_0)) { @class = new Class97(); } else if (Class29.smethod_0 <char>(type_0)) { @class = new Class81(); } else if (Class175.smethod_0(type_0)) { Class90 class2 = new Class90(); class2.method_1(type_0); @class = class2; } else { if (Class29.smethod_0 <Enum>(type_0)) { Enum enum_; if (object_0 == null) { if (type_0 == Class175.type_2) { enum_ = null; } else { enum_ = (Enum)Activator.CreateInstance(type_0); } } else if (type_0 == Class175.type_2 && object_0 is Enum) { enum_ = (Enum)object_0; } else { enum_ = (Enum)Enum.ToObject(type_0, object_0); } return(new Class84(enum_)); } if (Class29.smethod_0 <ValueType>(type_0)) { if (object_0 == null) { object object_; if (type_0 == Class175.type_3) { object_ = null; } else { object_ = Activator.CreateInstance(type_0); } @class = new Class107(object_); } else { if (object_0.GetType() != type_0) { try { object_0 = Convert.ChangeType(object_0, type_0); } catch { } } @class = new Class107(object_0); } return(@class); } @class = new Class90(); } if (object_0 != null) { @class.vmethod_1(object_0); } return(@class); }
// Token: 0x06001439 RID: 5177 RVA: 0x00024BD0 File Offset: 0x00022DD0 public void StringCollectionChange(object pdispStringCollection, Enum8 change, int lCollectionIndex) { Class29 class29_ = new Class29(pdispStringCollection, change, lCollectionIndex); this.class24_0.method_5(this.class24_0, class29_); }