Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method public hidebysig static string Redacted(string name, valuetype [mscorlib]System.DateTime lastModified) cil managed
- {
- .maxstack 6
- .locals init (
- [0] int64 num,
- [1] int64 num2,
- [2] bool flag)
- L_0000: ldarga.s lastModified
- L_0002: call instance int64 [mscorlib]System.DateTime::get_Ticks()
- L_0007: stloc.0
- L_0008: ldloc.0
- L_0009: ldloc.0
- L_000a: ldc.i4 10000
- L_000f: conv.i8
- L_0010: rem
- L_0011: sub
- L_0012: stloc.1
- L_0013: ldloc.0
- L_0014: ldloc.1
- L_0015: ceq
- L_0017: stloc.2
- L_0018: ldloca.s flag
- L_001a: call instance string [mscorlib]System.Boolean::ToString()
- L_001f: call void [Redacted]Redacted.Log::Debug(string)
- L_0024: ldloc.0
- L_0025: ldloc.0
- L_0026: ldloc.0
- L_0027: ldc.i4 10000
- L_002c: conv.i8
- L_002d: rem
- L_002e: sub
- L_002f: beq.s L_007e
- L_0031: ldarg.1
- L_0032: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
- L_0037: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
- L_003c: brfalse.s L_007e
- L_003e: ldstr "Last Modified Date = \'{0}\'. Ticks = \'{1}\'. TicksCalc = \'{2}\'"
- L_0043: ldarga.s lastModified
- L_0045: ldstr "dd/MM/yyyy hh:mm:ss.fff"
- L_004a: call instance string [mscorlib]System.DateTime::ToString(string)
- L_004f: ldloc.0
- L_0050: box int64
- L_0055: ldloc.0
- L_0056: ldloc.0
- L_0057: ldc.i4 10000
- L_005c: conv.i8
- L_005d: rem
- L_005e: sub
- L_005f: box int64
- L_0064: call string [mscorlib]System.String::Format(string, object, object, object)
- L_0069: call void [Redacted]Redacted.Log::Debug(string)
- L_006e: ldstr "lastModified specifies too accurate a date"
- L_0073: ldstr "lastModified"
- L_0078: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
- L_007d: throw
- L_007e: ldarga.s lastModified
- L_0080: call instance valuetype [mscorlib]System.DateTimeKind [mscorlib]System.DateTime::get_Kind()
- L_0085: ldc.i4.1
- L_0086: beq.s L_00a5
- L_0088: ldarg.1
- L_0089: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
- L_008e: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
- L_0093: brfalse.s L_00a5
- L_0095: ldstr "lastModified should be in UTC"
- L_009a: ldstr "lastModified"
- L_009f: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
- L_00a4: throw
- L_00a5: ldstr "{0}{1}"
- L_00aa: ldarg.0
- L_00ab: ldarg.1
- L_00ac: call string Redacted::Redacted(valuetype [mscorlib]System.DateTime)
- L_00b1: call string [mscorlib]System.String::Format(string, object, object)
- L_00b6: ret
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement