Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Working IL

By: a guest on May 25th, 2011  |  syntax: None  |  size: 2.88 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. .method public hidebysig static string Redacted(string name, valuetype [mscorlib]System.DateTime lastModified) cil managed
  2. {
  3.     .maxstack 6
  4.     .locals init (
  5.         [0] int64 num,
  6.         [1] int64 num2,
  7.         [2] bool flag)
  8.     L_0000: ldarga.s lastModified
  9.     L_0002: call instance int64 [mscorlib]System.DateTime::get_Ticks()
  10.     L_0007: stloc.0
  11.     L_0008: ldloc.0
  12.     L_0009: ldloc.0
  13.     L_000a: ldc.i4 10000
  14.     L_000f: conv.i8
  15.     L_0010: rem
  16.     L_0011: sub
  17.     L_0012: stloc.1
  18.     L_0013: ldloc.0
  19.     L_0014: ldloc.1
  20.     L_0015: ceq
  21.     L_0017: stloc.2
  22.     L_0018: ldloca.s flag
  23.     L_001a: call instance string [mscorlib]System.Boolean::ToString()
  24.     L_001f: call void [Redacted]Redacted.Log::Debug(string)
  25.     L_0024: ldloc.0
  26.     L_0025: ldloc.0
  27.     L_0026: ldloc.0
  28.     L_0027: ldc.i4 10000
  29.     L_002c: conv.i8
  30.     L_002d: rem
  31.     L_002e: sub
  32.     L_002f: beq.s L_007e
  33.     L_0031: ldarg.1
  34.     L_0032: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
  35.     L_0037: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
  36.     L_003c: brfalse.s L_007e
  37.     L_003e: ldstr "Last Modified Date = \'{0}\'. Ticks = \'{1}\'. TicksCalc = \'{2}\'"
  38.     L_0043: ldarga.s lastModified
  39.     L_0045: ldstr "dd/MM/yyyy hh:mm:ss.fff"
  40.     L_004a: call instance string [mscorlib]System.DateTime::ToString(string)
  41.     L_004f: ldloc.0
  42.     L_0050: box int64
  43.     L_0055: ldloc.0
  44.     L_0056: ldloc.0
  45.     L_0057: ldc.i4 10000
  46.     L_005c: conv.i8
  47.     L_005d: rem
  48.     L_005e: sub
  49.     L_005f: box int64
  50.     L_0064: call string [mscorlib]System.String::Format(string, object, object, object)
  51.     L_0069: call void [Redacted]Redacted.Log::Debug(string)
  52.     L_006e: ldstr "lastModified specifies too accurate a date"
  53.     L_0073: ldstr "lastModified"
  54.     L_0078: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
  55.     L_007d: throw
  56.     L_007e: ldarga.s lastModified
  57.     L_0080: call instance valuetype [mscorlib]System.DateTimeKind [mscorlib]System.DateTime::get_Kind()
  58.     L_0085: ldc.i4.1
  59.     L_0086: beq.s L_00a5
  60.     L_0088: ldarg.1
  61.     L_0089: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
  62.     L_008e: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
  63.     L_0093: brfalse.s L_00a5
  64.     L_0095: ldstr "lastModified should be in UTC"
  65.     L_009a: ldstr "lastModified"
  66.     L_009f: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
  67.     L_00a4: throw
  68.     L_00a5: ldstr "{0}{1}"
  69.     L_00aa: ldarg.0
  70.     L_00ab: ldarg.1
  71.     L_00ac: call string Redacted::Redacted(valuetype [mscorlib]System.DateTime)
  72.     L_00b1: call string [mscorlib]System.String::Format(string, object, object)
  73.     L_00b6: ret
  74. }