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

How does yield return work c#?

0 Answers  


What is shared inheritance

3 Answers   IGT,


What is the difference between system.text.stringbuilder and system.string?

0 Answers  


What is dao in c#?

0 Answers  


What is a value type in c#?

0 Answers  






Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  


What is callback delegate in c#?

0 Answers  


Can a static class have a constructor c#?

0 Answers  


What is the difference between int.Parse() and Convert.toInt32().

2 Answers  


What is a nullreferenceexception?

0 Answers  


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

0 Answers  


What is an iqueryable in c#?

0 Answers  


Categories