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...

what is a delegate? what it is used for?

Answer Posted / subbu

Delegates are a type that references method. Normally when
we calling a method we will pass some data to that method
as input parameter. But in some scenario we might need to
pass method as input parameter to other method in such case
we can use delegate.
Delegate wraps any method which matches its signature,
calling a delegate result in calling a method so this gives
the ability to call the method programmatically based on
our business needs.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do we get an error while executing the “finally” block in c#?

956


Is var a data type?

939


How to use the sreamReader class to read form a text file?

993


What is difference between interface and abstraction?

904


What is stringreader in c#?

881


Why do we need collections in c#?

869


Why do we use class in c#?

928


What are some examples of desktop applications?

931


Can abstract class have private constructor c#?

949


What happens when thread sleep () method is called?

902


What is lazy t?

949


What does void mean unity?

949


Can dictionary have duplicate keys c#?

875


What is option parameter in C#?

972


What is difference between throw and throws in c#?

867