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
Can we use pragma autonomous_transaction in trigger?
Why truncate is ddl?
I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible
Will count(column) include columns with null values in its count?
Can we shrink data file in sql server?
Do you know hot add cpu in sql server 2008?
What triggers long term care?
Does transparent data encryption provide encryption when transmitting data across the network?
How to add the custom code in Report?
What are the differences between ms sql server & oracle?
Describe in brief system database.
What options are there to delete rows on the publisher and not on the subscriber? : sql server replication
What is extended stored procedures?
What are drillthrough reports?
Can primary key be null?