Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 1.42 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. .field private object targetObj
  2.   .field private native int targetMethod
  3.   .field family class System.Delegate pNext
  4.   .method public hidebysig virtual instance bool Equals(object obj) cil managed
  5.   {
  6.     // Code size       74 (0x4a)
  7.     .maxstack  2
  8.     .locals init (class System.Delegate V_0, bool V_1, bool V_2)
  9.     IL_0000:  nop
  10.     IL_0001:  ldarg.1
  11.     IL_0002:  isinst     System.Delegate
  12.     IL_0007:  stloc.0
  13.     IL_0008:  ldloc.0
  14.     IL_0009:  ldnull
  15.     IL_000a:  ceq
  16.     IL_000c:  ldc.i4.0
  17.     IL_000d:  ceq
  18.     IL_000f:  stloc.2
  19.     IL_0010:  ldloc.2
  20.     IL_0011:  brtrue.s   IL_0018
  21.  
  22.     IL_0013:  nop
  23.     IL_0014:  ldc.i4.0
  24.     IL_0015:  stloc.1
  25.     IL_0016:  br.s       IL_0048
  26.  
  27.     IL_0018:  ldloc.0
  28.     IL_0019:  ldfld      object System.Delegate::targetObj
  29.     IL_001e:  ldarg.0
  30.     IL_001f:  ldfld      object System.Delegate::targetObj
  31.     IL_0024:  bne.un.s   IL_0044
  32.  
  33.     IL_0026:  ldloc.0
  34.     IL_0027:  ldflda     native int System.Delegate::targetMethod
  35.     IL_002c:  ldarg.0
  36.     IL_002d:  ldfld      native int System.Delegate::targetMethod
  37.     IL_0032:  box        System.IntPtr
  38.     IL_0037:  constrained. System.IntPtr
  39.     IL_003d:  callvirt   instance bool System.Object::Equals(object)
  40.     IL_0042:  br.s       IL_0045
  41.  
  42.     IL_0044:  ldc.i4.0
  43.     IL_0045:  stloc.1
  44.     IL_0046:  br.s       IL_0048
  45.  
  46.     IL_0048:  ldloc.1
  47.     IL_0049:  ret
  48.   } // end of method Delegate::Equals