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

Detail about query optimizer?

1089


How to run sql server 2005 books online on your local system?

955


Write the queries for commands like Create Table, Delete table, Drop Table etc.

1084


How to backup SQL Server Reporting Services ?

148


Explain the commands in sql server?

1029


how many no of arguments can be passed in procedures and functions

5543


How to get the definition of a trigger back?

995


What stored by the msdb?

989


How to download and install microsoft .net framework version 2.0?

1130


How to divide query output into multiple groups with the group by clause in ms sql server?

1023


What is ms sql server triggers?

999


Explain what stored procedure sp_replcounters is used for? : sql server replication

1499


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

1200


What is the sql case statement used for?

1087


What is rank function?

1018