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 |
ctype(123.34,integer) - should it throw an error? Why or why not?
What are the string functions in c#?
What is difference between destructor and finalize?
List some of the common data providers for ado.net framework?
Why we put script in head of asp.net page Why not in body?
When should I throw an exception?
What is a delegate? Explain.
Is string mutable in c#?
How do I create a .exe file?
Why do we need indexer in c#?
Please explain value types and reference types used in c#?
Why do we need collections in c#?