Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Define tempdb database?

994


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

1013


How to Update from select query in sql server?

1059


what is a sub-report?

140


What it means to be triggered?

1002


When do you think a developer should use sql server-based cursors?

1047


Do you know what is lock escalation?

1011


Equi join and non equi join is possible with sql server?

1020


How to select some specific rows from a table in ms sql server?

1005


What stored by the tempdb ? : sql server database administration

1044


What does COMMIT command do?

1062


New concepts of sql server 2005 use in your project.

2360


What is the use of @@spid?

1001


Which Model uses the SET concept

984


What does the update command do?

1112