Skip to content

Instantly share code, notes, and snippets.

@robertpi
Created September 16, 2010 15:38
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 robertpi/582637 to your computer and use it in GitHub Desktop.
Save robertpi/582637 to your computer and use it in GitHub Desktop.
let aFunction myParamFunc =
myParamFunc()
class A {
static void AMethod(MyBase myBase) {
myBase.AMemberMethod();
}
}
MyBase myBase = new MyBase();
A.AMethod(myBase);
MyDerived myDerived = new MyDerived ();
A.AMethod(myDerived);
class A {
static void AMethod(IMyInterface myInterface) {
myInterface.AMemberMethod();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment