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 are the types of delegates in c#?



What are the types of delegates in c#?..

Answer / Dilip Kumar

"C# supports three types of delegates:
1. Simple Delegate: A delegate is defined using the delegate keyword and contains a return type, followed by the delegate name and parameters within parentheses. For example: `delegate int MyDelegate(int x, int y);`
2. Anonymous Delegate: It's a delegate that is declared without an explicit delegate type. You can create an anonymous method to assign to it inline at the time of use.
3. Multicast Delegates: A multicast delegate is a delegate object that contains multiple method pointers. A multicast delegate is represented by the += and -= operators in C#."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the difference between internal and protected in c#?

1 Answers  


from web.config file with connection string who to interact means who to connect in gridview. in my system shows null something error what is the problem

3 Answers   Bally Technologies,


What is different about switch statements in c#?

1 Answers  


What are delegates and why are they required?

1 Answers  


Explain About friend and Protected friend

1 Answers  


What are winforms in c#?

1 Answers  


What is the difference between struct and class c#?

1 Answers  


c# code for how to merge two sorted arrays Input : A = 2,5,8,4 B = 3,9,10,5 Output : 2,3,4,5,5,8,9,10

3 Answers  


What is datagrid c#?

1 Answers  


How to transpose multi-dimensional array?

1 Answers   C DAC, CDAC,


Write a functin to add two no. Both no can be int, float.

3 Answers   HCL,


Explain About Global.asax

1 Answers   Keane India Ltd,


Categories