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 |
What is the difference between internal and protected in c#?
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
What is different about switch statements in c#?
What are delegates and why are they required?
Explain About friend and Protected friend
What are winforms in c#?
What is the difference between struct and class c#?
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
What is datagrid c#?
How to transpose multi-dimensional array?
Write a functin to add two no. Both no can be int, float.
Explain About Global.asax
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)