Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


what is multicast delegate
Question Posted on 15 Aug 2011

Home >> DotNet >> C# >> what is multicast delegate




The C# language support feature that is known as the multicast delegate. Any delegate that has a void return type is called multicast delegate. A multicast delegate can be assigned and invoke multiple methods.
if we are doing ASP.NET development and have ever looked at a page's InitializeComponent() method, we may have noticed a statement like this:

this.EditButton.Click += new System.EventHandler(this.EditButton_Click);
If we want to add another event handler then we can easily do that for example:-
this.EditButton.Click += new System.EventHandler(this.EditButton_Click);
this.SearchButton.Click += new System.EventHandler(this.newmethod);
In above example first Editbutton_Click is called after that newMethod is called
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |