What?s a delegate?

Answers were Sorted based on User's Feedback



What?s a delegate?..

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

What?s a delegate?..

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

What?s a delegate?..

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

Post New Answer

More C Sharp Interview Questions

ctype(123.34,integer) - should it throw an error? Why or why not?

2 Answers   Wipro,


What are the string functions in c#?

0 Answers  


What is difference between destructor and finalize?

0 Answers  


List some of the common data providers for ado.net framework?

0 Answers  


Why we put script in head of asp.net page Why not in body?

1 Answers  






When should I throw an exception?

0 Answers  


What is a delegate? Explain.

0 Answers  


Is string mutable in c#?

0 Answers  


How do I create a .exe file?

0 Answers  


Why do we need indexer in c#?

0 Answers  


Please explain value types and reference types used in c#?

0 Answers  


Why do we need collections in c#?

0 Answers  


Categories