Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created June 22, 2019 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/dba428e1e3be23db861236f9444440c2 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/dba428e1e3be23db861236f9444440c2 to your computer and use it in GitHub Desktop.
.method public hidebysig
instance void CallingMethodWithObjectParam () cil managed
{
// Method begins at RVA 0x2068
// Code size 33 (0x21)
.maxstack 3
.locals init (
[0] int32
)
IL_0000: ldc.i4 9000
IL_0005: stloc.0
IL_0006: ldstr "It's over "
IL_000b: ldloc.0
IL_000c: box [System.Runtime]System.Int32 // The value type is boxed
IL_0011: ldstr "!"
IL_0016: call string [System.Runtime]System.String::Concat(object, object, object) // Call to Concat method with the boxed value type
IL_001b: call void [System.Console]System.Console::WriteLine(string)
IL_0020: ret
} // end of method Class2::CallingMethodWithObjectParam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment