MULTICAST DELEGATES IN C#.NET WITH REAL TIME EXAMPLE
Answer Posted / guest
delegates used to invoke one function. Multicasst delegate
is used to invoke mmore than one function
Say for example
This is our delegate
delegate void myDelegate (string s);
Weh ve two functions like
publc void sayHello(String Name)
{
//implementation goes here
}
public void sayHai(String Name)
{
//implementation goes here
}
If we want to invoke both of these functions
use like
myDelegate md= new myDelegate(sayHello);
md+=new myDelegate(sayHai);
| Is This Answer Correct ? | 33 Yes | 4 No |
Post New Answer View All Answers
How can you manage sql azure security?
What are the limitations in ssrs on sql server express edition?
How do I edit a stored procedure in sql server?
What are the types of table?
List out what other servers you can use with ssrs?
What is a derived table?
What is the partitioning method?
In what version of sql server were synonyms released?
Explain system scalar functions?
How can change procedure in sql server?
can an order by clause be used in a creation of a view?
How do I edit a procedure in sql server?
What are different types of replication in sql server?
What is the default fill factor value?
Why I am getting "the microsoft .net framework 2.0 in not installed" message?