Created
June 21, 2016 18:52
-
-
Save thebecwar/22e319c342410eac5e71ccf7bac1c074 to your computer and use it in GitHub Desktop.
Implicit Widening conversions IL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.method private hidebysig static void Main(string[] args) cil managed | |
{ | |
.entrypoint | |
// Code size 38 (0x26) | |
.maxstack 2 | |
.locals init ([0] int64 num1, | |
[1] int32 num2, | |
[2] bool a, | |
[3] bool b, | |
[4] bool c) | |
IL_0000: nop | |
IL_0001: ldc.i4.1 | |
IL_0002: conv.i8 | |
IL_0003: stloc.0 | |
IL_0004: ldc.i4.1 | |
IL_0005: stloc.1 | |
IL_0006: ldloca.s num1 | |
IL_0008: ldloc.1 | |
IL_0009: conv.i8 | |
IL_000a: call instance bool [mscorlib]System.Int64::Equals(int64) | |
IL_000f: stloc.2 | |
IL_0010: ldloca.s num2 | |
IL_0012: ldloc.0 | |
IL_0013: box [mscorlib]System.Int64 | |
IL_0018: call instance bool [mscorlib]System.Int32::Equals(object) | |
IL_001d: stloc.3 | |
IL_001e: ldloc.1 | |
IL_001f: conv.i8 | |
IL_0020: ldloc.0 | |
IL_0021: ceq | |
IL_0023: stloc.s c | |
IL_0025: ret | |
} // end of method Program::Main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment