Skip to content

Instantly share code, notes, and snippets.

@kshyju
Created February 9, 2019 04:22
Show Gist options
  • Save kshyju/5420d377253f6de32d2d90918ca3ec18 to your computer and use it in GitHub Desktop.
Save kshyju/5420d377253f6de32d2d90918ca3ec18 to your computer and use it in GitHub Desktop.
IL
/ Token: 0x06000001 RID: 1 RVA: 0x00002048 File Offset: 0x00000248
.method private hidebysig static
void Main (
string[] args
) cil managed
{
// Header Size: 12 bytes
// Code Size: 25 (0x19) bytes
// LocalVarSig Token: 0x11000001 RID: 1
.maxstack 2
.entrypoint
.locals init (
[0] valuetype MemorySampleApp.Program/MyData myDataObject
)
/* (14,13)-(14,45) C:\Shyju\Learn\Memory\MemorySampleApp\Program.cs */
/* 0x00000254 1200 */ IL_0000: ldloca.s myDataObject
/* 0x00000256 FE1503000002 */ IL_0002: initobj MemorySampleApp.Program/MyData
/* (15,13)-(15,35) C:\Shyju\Learn\Memory\MemorySampleApp\Program.cs */
/* 0x0000025C 1200 */ IL_0008: ldloca.s myDataObject
/* 0x0000025E 1F17 */ IL_000A: ldc.i4.s 23
/* 0x00000260 2804000006 */ IL_000C: call instance void MemorySampleApp.Program/MyData::set_Val(int32)
/* (17,13)-(17,44) C:\Shyju\Learn\Memory\MemorySampleApp\Program.cs */
/* 0x00000265 06 */ IL_0011: ldloc.0
/* 0x00000266 2802000006 */ IL_0012: call int32 MemorySampleApp.Program::MyHelper(valuetype MemorySampleApp.Program/MyData)
/* 0x0000026B 26 */ IL_0017: pop
/* (18,9)-(18,10) C:\Shyju\Learn\Memory\MemorySampleApp\Program.cs */
/* 0x0000026C 2A */ IL_0018: ret
} // end of method Program::Main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment