Skip to content

Instantly share code, notes, and snippets.

View mattumotu's full-sized avatar

Matt Phillips mattumotu

  • United Kingdom
View GitHub Profile
// matchingMethod1 matches myDelegate delegate
public return-type matchingMethod1(<ParameterList>) { ... }
// matchingMethod2 matches myDelegate delegate
public return-type matchingMethod2(<ParameterList>) { ... }
// askPolitely matches responseBehaviour delegate
public void askPolitely(Person borrower) {
borrower.say("Y-- Excuse me. You-- I believe you have my stapler?");
}
// Generic example
public delegate return-type myDelegate(<ParameterList>);
// Concrete example
public delegate void responseBehaviour(Person borrower);