If you like to create custom delegates you would use the delegate
keyword in lowercase.
What can you do with the actual Delegate
Class? What is this good for? I don't understand the exact difference.
If you like to create custom delegates you would use the delegate
keyword in lowercase.
What can you do with the actual Delegate
Class? What is this good for? I don't understand the exact difference.
From http://msdn.microsoft.com/en-us/library/system.delegate.aspx:
The
Delegate
class is the base class for delegate types. However, only the system and compilers can derive explicitly from theDelegate
class or from theMulticastDelegate
class. It is also not permissible to derive a new type from a delegate type. TheDelegate
class is not considered a delegate type; it is a class used to derive delegate types.Most languages implement a
delegate
keyword, and compilers for those languages are able to derive from theMulticastDelegate
class; therefore, users should use thedelegate
keyword provided by the language.