Skip to content

Instantly share code, notes, and snippets.

@pietervp
Created June 29, 2012 10:59
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 pietervp/3017356 to your computer and use it in GitHub Desktop.
Save pietervp/3017356 to your computer and use it in GitHub Desktop.
public static string Format(string format, object arg0, object arg1)
Offset OpCode
0 ldnull
1 ldarg.0
2 ldc.i4.2
3 newarr System.Object
8 stloc.0
9 ldloc.0
10 ldc.i4.0
11 ldarg.1
12 stelem.ref
13 ldloc.0
14 ldc.i4.1
15 ldarg.2
16 stelem.ref
17 ldloc.0
18 call System.String System.String::Format(System.IFormatProvider,System.String,System.Object[])
23 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment