The purpose of this sample is to introduce developers to delegates and events. Delegates and events are a type-safe method callback mechanism. The sample declares a ΓÇ£chatΓÇ¥ server type that multiple ΓÇ£clientsΓÇ¥ can connect to. Each client registers a delegate (callback method) with the server. Then, when one client sends a string message to the server, the server forwards the message to all registered clients. This code has two implementations. The first uses delegates showing low-level callback mechanism. The second implementation uses events showing how events hide most of the low-level goo associated with delegates.
The delegate class is used as the base class for derived delegate classes. Delegate classes are used to encapsulate a callback method in a type-safe way.
</class>
</technology>
<technology name = "Garbage Collection" keyword="T">
<class name = "GC" keyword="T">
Used to suppress the execution of the finalize method on types that have already been "Disposed".