Skip to content

Instantly share code, notes, and snippets.

Created July 21, 2016 13:08
Show Gist options
  • Save anonymous/58df84eda906e83c64ce1b4fdc5497fb to your computer and use it in GitHub Desktop.
Save anonymous/58df84eda906e83c64ce1b4fdc5497fb to your computer and use it in GitHub Desktop.
Generated code
Foo.A:
IL_0000: ldarg.1
IL_0001: callvirt instance void Test.Foo::Do()
Foo.B:
IL_0000: ldarga.s foo
IL_0002: constrained. !!T
IL_0008: callvirt instance void Test.IFace::Do()
Foo.C:
IL_0000: ldarg.1
IL_0001: callvirt instance void Test.IFace::Do()
Foo.D (generated by Microsoft):
IL_0000: ldarg.1
IL_0001: box !!T
IL_0006: callvirt instance void Test.IFace::Do()
Foo.D (generated by Mono):
IL_0000: ldarga.s foo
IL_0002: constrained. !!T
IL_0008: callvirt instance void JsonTest.IFace::Do()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment