M
Manco
1. A delegate is a type-safe, object-oriented function pointer.
2. A delegate declartion is C-sharp, f.e., public delegate void
MyDelegate(int); defines a MulticastDelgate which contains a linked-list of
delegates that can be added using .Combine method.
3. An event object is an implementation of the Observer design pattern.
4. An event is declared thus:
public event MyDelegate MyEvent;
5. An event is simply a wrapper around a MulticastDelegate, the C-sharp
compiler will generate static += and -= operators to more easily add or
subtract MulticastDelegates to the underlying MulticastDelegate.
2. A delegate declartion is C-sharp, f.e., public delegate void
MyDelegate(int); defines a MulticastDelgate which contains a linked-list of
delegates that can be added using .Combine method.
3. An event object is an implementation of the Observer design pattern.
4. An event is declared thus:
public event MyDelegate MyEvent;
5. An event is simply a wrapper around a MulticastDelegate, the C-sharp
compiler will generate static += and -= operators to more easily add or
subtract MulticastDelegates to the underlying MulticastDelegate.