Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/boxing.cs Secret

Created Jun 22, 2019
Embed
What would you like to do?
.method public hidebysig
instance void ValueTypes () cil managed
{
// Method begins at RVA 0x2068
// Code size 20 (0x14)
.maxstack 1
.locals init (
[0] int32
)
IL_0000: ldc.i4.s 10
IL_0002: stloc.0
IL_0003: ldloc.0
IL_0004: box [System.Runtime]System.Int32 // Box num1 integer value
IL_0009: call instance class [System.Runtime]System.Type [System.Runtime]System.Object::GetType() // Calls the GetType() method from System.Object
IL_000e: call void [System.Console]System.Console::WriteLine(object)
IL_0013: ret
} // end of method Class2::ValueTypes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment