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

Why ienumerable is used in c#?

0 Answers  


Can derived classes have greater accessibility than their base types?

0 Answers  


What are the access-specifiers available in c#?

26 Answers   Syntel,


What is difference between ienumerable and enumerable in c#?

0 Answers  


What does dbml mean?

0 Answers  






What is sqlcommandbuilder c#?

0 Answers  


What is difference between string and stringbuffer in c#?

0 Answers  


If we write a goto or a return statement in try and catch block will the finally block execute?

6 Answers  


What are callback methods in c#?

0 Answers  


What is console readkey in vb net?

0 Answers  


How to use the sreamReader class to read form a text file?

0 Answers   MCN Solutions,


Why do we need collections in c#?

0 Answers  


Categories