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
What are magic tables in sql server?
What are subqueries in sql server?
Why use “in” clause in sql server?
How do I setup a local sql server database?
Do you know what is sql service broker?
What is change data capture (cdc) in sql server 2008?
What are the steps you should follow to start sql server in single-user mode?
Explain following error properties?
Give a example to search fr a string in all stored procedure in sql server.
What is the difference between for trigger and after trigger?
What are filegroups in sql server?
Is sql server a database?
What is the main difference between ‘between’ and ‘in’ condition operators?
What is a bit datatype?
How to test a dml trigger in ms sql server?