Answer Posted / 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 View All Answers