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

What is difference between assembly and namespace?

866


What is a service layer c#?

808


What is the use of nullable types in c#?

927


What are Namespaces?

1262


What are the types of comment in c# with examples?

865


Difference between debug.write and trace.write?

911


What are the types of serialization?

906


How do you achieve polymorphism in c#?

838


What do u mean by delegation?

884


What is the difference between abstract class and interface in c#?

896


What is Event - Delegate?

1008


What are concrete classes?

824


What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

918


How long has c# been around?

919


How do you prevent a method from being overridden in c#?

808