Both delegates and interfaces enable a class designer to separate type declarations and implementation. A given interface can be inherited and implemented by any class or struct. A delegate can be created for a method on any class, as long as the method fits the method signature for the delegate.
A delegate can be instantiated by associating it either with a named or anonymous method.
Post a Comment