Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var s = "hello world";
- var i = s.Length;
- .locals init ([0] string s,
- [1] int32 i)
- IL_0000: nop
- IL_0001: ldstr "hello world"
- IL_0006: stloc.0
- IL_0007: ldloc.0
- IL_0008: callvirt instance int32 [mscorlib]System.String::get_Length()
- IL_000d: stloc.1
- static void Main(string[] args)
- {
- string h = "hello world";
- int i = h.Length;
- }
- .method private hidebysig static void Main(string[] args) cil managed
- {
- .entrypoint
- .maxstack 1
- .locals init (
- [0] string h,
- [1] int32 i)
- L_0000: nop
- L_0001: ldstr "hello world"
- L_0006: stloc.0
- L_0007: ldloc.0
- L_0008: callvirt instance int32 [mscorlib]System.String::get_Length()
- L_000d: stloc.1
- L_000e: ret
- }
Add Comment
Please, Sign In to add comment