Thursday, June 04, 2009

Delegates

阿... 還不懂,收個文件。
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.

Comments

0 Responses to "Delegates"

Post a Comment

Tags