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)
- 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: ldloc.0
- L_000b: ldc.i4 10000
- L_0010: conv.i8
- L_0011: rem
- L_0012: sub
- L_0013: beq.s L_0062
- L_0015: ldarg.1
- L_0016: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
- L_001b: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
- L_0020: brfalse.s L_0062
- L_0022: ldstr "Last Modified Date = \'{0}\'. Ticks = \'{1}\'. TicksCalc = \'{2}\'"
- L_0027: ldarga.s lastModified
- L_0029: ldstr "dd/MM/yyyy hh:mm:ss.fff"
- L_002e: call instance string [mscorlib]System.DateTime::ToString(string)
- L_0033: ldloc.0
- L_0034: box int64
- L_0039: ldloc.0
- L_003a: ldloc.0
- L_003b: ldc.i4 10000
- L_0040: conv.i8
- L_0041: rem
- L_0042: sub
- L_0043: box int64
- L_0048: call string [mscorlib]System.String::Format(string, object, object, object)
- L_004d: call void [Redacted]Redacted.Log::Debug(string)
- L_0052: ldstr "lastModified specifies too accurate a date"
- L_0057: ldstr "lastModified"
- L_005c: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
- L_0061: throw
- L_0062: ldarga.s lastModified
- L_0064: call instance valuetype [mscorlib]System.DateTimeKind [mscorlib]System.DateTime::get_Kind()
- L_0069: ldc.i4.1
- L_006a: beq.s L_0089
- L_006c: ldarg.1
- L_006d: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
- L_0072: call bool [mscorlib]System.DateTime::op_Inequality(valuetype [mscorlib]System.DateTime, valuetype [mscorlib]System.DateTime)
- L_0077: brfalse.s L_0089
- L_0079: ldstr "lastModified should be in UTC"
- L_007e: ldstr "lastModified"
- L_0083: newobj instance void [mscorlib]System.ArgumentException::.ctor(string, string)
- L_0088: throw
- L_0089: ldstr "{0}{1}"
- L_008e: ldarg.0
- L_008f: ldarg.1
- L_0090: call string Redacted::Redacted(valuetype [mscorlib]System.DateTime)
- L_0095: call string [mscorlib]System.String::Format(string, object, object)
- L_009a: ret
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement