Skip to content

Instantly share code, notes, and snippets.

@chilversc
Created July 4, 2011 14:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilversc/1063434 to your computer and use it in GitHub Desktop.
Save chilversc/1063434 to your computer and use it in GitHub Desktop.
.class interface private abstract auto ansi IBob
{
.method public newslot abstract strict virtual
instance void Foo() cil managed
{
} // end of method IBob::Foo
.method public newslot abstract strict virtual
instance void Bar() cil managed
{
} // end of method IBob::Bar
.method public newslot abstract strict virtual
instance void Flibble() cil managed
{
} // end of method IBob::Flibble
} // end of class IBob
.class public auto ansi Bob
extends [mscorlib]System.Object
implements IBob
{
.method public specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
} // end of method Bob::.ctor
.method public newslot strict virtual final
instance void Foo_1() cil managed
{
.override IBob::Foo
// Code size 1 (0x1)
.maxstack 8
IL_0000: ret
} // end of method Bob::Foo_1
.method private newslot strict virtual final
instance void Bar() cil managed
{
.override IBob::Bar
// Code size 1 (0x1)
.maxstack 8
IL_0000: ret
} // end of method Bob::Bar
.method public newslot strict virtual final
instance void Flibble() cil managed
{
.override IBob::Flibble
// Code size 1 (0x1)
.maxstack 8
IL_0000: ret
} // end of method Bob::Flibble
} // end of class Bob
Interface IBob
Sub Foo()
Sub Bar()
Sub Flibble()
End Interface
Public Class Bob
Implements IBob
Public Sub Foo_1 Implements IBob.Foo
End Sub
Private Sub Bar Implements IBob.Bar
End Sub
Public Sub Flibble Implements IBob.Flibble
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment