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 / ganesh

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

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Any problem found in vs.et

1005


Can we have two main methods in c#?

967


Difference between value and reference type. What are value types and reference types?

995


How do I create a delegate/multicastdelegate?

1000


What is the difference between a function and a method?

982


What is the relation between classes and objects?

961


What is the base class for array types?

1042


Is c# a technology?

912


How do destructors and garbage collection work in c#?

932


What is the difference between string and stringbuilder in c#?

958


Is it true that all c# types derive from a common base class?

1094


Can you inherit multiple abstract classes in c#?

936


How Reflection is used and what it's significance ?

938


What is hierarchical inheritance in c#?

976


How to use delegates with events?

989