C# Programming - Delegates - Discussion
Discussion Forum : Delegates - General Questions (Q.No. 2)
2.
In which of the following areas are delegates commonly used?
- Remoting
- Serialization
- File Input/Output
- Multithreading
- Event handling
Discussion:
3 comments Page 1 of 1.
Madan said:
1 decade ago
In multithreading and event handling we can pass functions by using delegates na.
Ravindar Nath Mishra said:
1 decade ago
We use delegates in multithreading and event handling in order to provide type safety.
Lakshmireddy said:
1 decade ago
In event handling methods are called by using:
EventHandler oa=new EventHandler(abc);
button1.click+=oa;
here abc is calling method
eventhandler method defination:
protected void abc(object s,EventArgs e)
{
}
EventHandler oa=new EventHandler(abc);
button1.click+=oa;
here abc is calling method
eventhandler method defination:
protected void abc(object s,EventArgs e)
{
}
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers