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
Detail about query optimizer?
How to run sql server 2005 books online on your local system?
Write the queries for commands like Create Table, Delete table, Drop Table etc.
How to backup SQL Server Reporting Services ?
Explain the commands in sql server?
how many no of arguments can be passed in procedures and functions
How to get the definition of a trigger back?
What stored by the msdb?
How to download and install microsoft .net framework version 2.0?
How to divide query output into multiple groups with the group by clause in ms sql server?
What is ms sql server triggers?
Explain what stored procedure sp_replcounters is used for? : sql server replication
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
What is the sql case statement used for?
What is rank function?