C# Programming - Delegates - Discussion

Discussion :: 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

[A]. 1 and 2 only
[B]. 1 and 5 only
[C]. 1, 2 and 3 only
[D]. 4 and 5 only
[E]. All of the above

Answer: Option D

Explanation:

No answer description available for this question.

Madan said: (Aug 25, 2011)  
In multithreading and event handling we can pass functions by using delegates na.

Ravindar Nath Mishra said: (Jul 30, 2012)  
We use delegates in multithreading and event handling in order to provide type safety.

Lakshmireddy said: (Feb 7, 2015)  
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:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.