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

What are magic tables in sql server?

1138


What are subqueries in sql server?

1126


Why use “in” clause in sql server?

1075


How do I setup a local sql server database?

1010


Do you know what is sql service broker?

1092


What is change data capture (cdc) in sql server 2008?

1028


What are the steps you should follow to start sql server in single-user mode?

905


Explain following error properties?

1023


Give a example to search fr a string in all stored procedure in sql server.

989


What is the difference between for trigger and after trigger?

1109


What are filegroups in sql server?

1066


Is sql server a database?

1003


What is the main difference between ‘between’ and ‘in’ condition operators?

1195


What is a bit datatype?

990


How to test a dml trigger in ms sql server?

1050