Skip to content

Instantly share code, notes, and snippets.

@josephwoodward
Created February 10, 2017 21:24
Show Gist options
  • Save josephwoodward/0fbf45d63a07fb4f6e82a54ca15cfe25 to your computer and use it in GitHub Desktop.
Save josephwoodward/0fbf45d63a07fb4f6e82a54ca15cfe25 to your computer and use it in GitHub Desktop.
example.cs
.class private auto ansi '<Module>'
{
} // end of class <Module>
.class public auto ansi beforefieldinit C
extends [mscorlib]System.Object
{
// Methods
.method public hidebysig
instance void M () cil managed
{
// Method begins at RVA 0x2050
// Code size 2 (0x2)
.maxstack 8
IL_0000: nop // Do nothing (No operation)
IL_0001: ret // Return from method, possibly with a value
} // end of method C::M
.method public hidebysig specialname rtspecialname
instance void .ctor () cil managed
{
// Method begins at RVA 0x2053
// Code size 8 (0x8)
.maxstack 8
IL_0000: ldarg.0 // Load argument 0 onto the stack
IL_0001: call instance void [mscorlib]System.Object::.ctor() // Call method indicated on the stack with arguments
IL_0006: nop // Do nothing (No operation)
IL_0007: ret // Return from method, possibly with a value
} // end of method C::.ctor
} // end of class C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment