Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created February 28, 2013 08:35
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 einarwh/5055215 to your computer and use it in GitHub Desktop.
Save einarwh/5055215 to your computer and use it in GitHub Desktop.
IL code for the BoxedICanine class.
.class public auto ansi beforefieldinit BoxedICanine
extends PolyFix.Lib.Box`1<class PolyFix.Lib.ICanine>
implements PolyFix.Lib.ICanine
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed
{
.maxstack 8
L_0000: ldarg.0
L_0001: call instance void PolyFix.Lib.Box`1<class PolyFix.Lib.ICanine>::.ctor()
L_0006: ret
}
.method public hidebysig newslot virtual final instance bool Eats(valuetype PolyFix.Lib.Food f) cil managed
{
.maxstack 8
L_0000: ldarg.0
L_0001: ldfld !0 PolyFix.Lib.Box`1<class PolyFix.Lib.ICanine>::_
L_0006: ldarg.1
L_0007: callvirt instance bool PolyFix.Lib.ICanine::Eats(valuetype PolyFix.Lib.Food)
L_000c: ret
}
.method public hidebysig specialname newslot virtual final instance string get_Bark() cil managed
{
.maxstack 8
L_0000: ldarg.0
L_0001: ldfld !0 PolyFix.Lib.Box`1<class PolyFix.Lib.ICanine>::_
L_0006: callvirt instance string PolyFix.Lib.ICanine::get_Bark()
L_000b: ret
}
.property instance string Bark
{
.get instance string PolyFix.Lib.BoxedICanine::get_Bark()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment