Advertisement
Guest User

Notworking IL

a guest
May 25th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  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. L_0000: ldarga.s lastModified
  7. L_0002: call instance int64 [mscorlib]System.DateTime::get_Ticks()
  8. L_0007: stloc.0
  9. L_0008: ldloc.0
  10. L_0009: ldloc.0
  11. L_000a: ldloc.0
  12. L_000b: ldc.i4 10000
  13. L_0010: conv.i8
  14. L_0011: rem
  15. L_0012: sub
  16. L_0013: beq.s L_0062
  17. L_0015: ldarg.1
  18. L_0016: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
  19. L_001b: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
  20. L_0020: brfalse.s L_0062
  21. L_0022: ldstr "Last Modified Date = \'{0}\'. Ticks = \'{1}\'. TicksCalc = \'{2}\'"
  22. L_0027: ldarga.s lastModified
  23. L_0029: ldstr "dd/MM/yyyy hh:mm:ss.fff"
  24. L_002e: call instance string [mscorlib]System.DateTime::ToString(string)
  25. L_0033: ldloc.0
  26. L_0034: box int64
  27. L_0039: ldloc.0
  28. L_003a: ldloc.0
  29. L_003b: ldc.i4 10000
  30. L_0040: conv.i8
  31. L_0041: rem
  32. L_0042: sub
  33. L_0043: box int64
  34. L_0048: call string [mscorlib]System.String::Format(string, object, object, object)
  35. L_004d: call void [Redacted]Redacted.Log::Debug(string)
  36. L_0052: ldstr "lastModified specifies too accurate a date"
  37. L_0057: ldstr "lastModified"
  38. L_005c: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
  39. L_0061: throw
  40. L_0062: ldarga.s lastModified
  41. L_0064: call instance valuetype [mscorlib]System.DateTimeKind [mscorlib]System.DateTime::get_Kind()
  42. L_0069: ldc.i4.1
  43. L_006a: beq.s L_0089
  44. L_006c: ldarg.1
  45. L_006d: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
  46. L_0072: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
  47. L_0077: brfalse.s L_0089
  48. L_0079: ldstr "lastModified should be in UTC"
  49. L_007e: ldstr "lastModified"
  50. L_0083: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
  51. L_0088: throw
  52. L_0089: ldstr "{0}{1}"
  53. L_008e: ldarg.0
  54. L_008f: ldarg.1
  55. L_0090: call string Redacted::Redacted(valuetype [mscorlib]System.DateTime)
  56. L_0095: call string [mscorlib]System.String::Format(string, object, object)
  57. L_009a: ret
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement