What?s a delegate?
Answers were Sorted based on User's Feedback
Answer / guest
A delegate object encapsulates a reference to a method. In
C++ they were referred to as function pointers.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / maqsud
The delegate keyword is used to declare a reference type
that can be used to encapsulate a named or an anonymous
method. Delegates are similar to function pointers in C++;
however, delegates are type-safe and secure.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kamlesh sharma
Delegates are like pointer to functions in c and c++
Delegates are used to encapsulate functions into callable
function object (delegates are type sage in c#)
Is This Answer Correct ? | 2 Yes | 0 No |
How does yield return work c#?
What is shared inheritance
What is the difference between system.text.stringbuilder and system.string?
What is dao in c#?
What is a value type in c#?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
What is callback delegate in c#?
Can a static class have a constructor c#?
What is the difference between int.Parse() and Convert.toInt32().
What is a nullreferenceexception?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What is an iqueryable in c#?