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
Define tempdb database?
The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio
How to Update from select query in sql server?
what is a sub-report?
What it means to be triggered?
When do you think a developer should use sql server-based cursors?
Do you know what is lock escalation?
Equi join and non equi join is possible with sql server?
How to select some specific rows from a table in ms sql server?
What stored by the tempdb ? : sql server database administration
What does COMMIT command do?
New concepts of sql server 2005 use in your project.
What is the use of @@spid?
Which Model uses the SET concept
What does the update command do?