What is a delegate in C#?
Correct answer D. A type-safe reference to a method with a specific signature
Explanation
A delegate type defines a method signature, and a delegate instance holds a reference to one or more methods matching it, which can be invoked later. This lets methods be passed as arguments, used as callbacks and combined into events. Delegates are type-safe: the compiler rejects methods whose parameters or return type do not match.
Answer checked How we write and check questions
Discussion