- A strongly typed function pointer.
- A light weight thread or process that can call a single method.
- A reference to an object in a different process.
- An inter-process message channel.
At the time of event handing deligates or used
Delegates are the classes used to wrap callback function into managed shape. Internally delegate instance holds reference to function or functions chain that are match signature declared by the delegate.
Events are the basic building block of most object-oriented languages.
When you create an object, you have certain events that can be triggered.
the easiest example is a button. When you "click" the button with your mouse, an event occurs that you can "capture" and write code for.
For the button, the event is OnClick. What ever you want to happen, you put in the sub Button1_Click()
Different controls have different events
No comments:
Post a Comment