C# Programming - Delegates - Discussion

Discussion Forum : Delegates - General Questions (Q.No. 2)
2.
In which of the following areas are delegates commonly used?
  1. Remoting
  2. Serialization
  3. File Input/Output
  4. Multithreading
  5. Event handling
1 and 2 only
1 and 5 only
1, 2 and 3 only
4 and 5 only
All of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
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)
{

}

Post your comments here:

Your comments will be displayed after verification.