what are delegates? How you used then in your project?

Answer Posted / mandeep

Delegate is an object that can refer to a method.

When we are creating delegates, we are creating an object that can hold a reference to a method; it necessarily means that a delegate can invoke the method to which it refers. ..

A very good easy to understand article related with this is here http://www.dotnetfunda.com/articles/article1670-what-are-delegates-in-csharp.aspx (plain and simple)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cshtml?

603


What is mvc in c#?

550


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

566


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

593


What does writeline mean?

614






What is instantiating a class in c#?

570


When To use HashTable In C#

650


Structs are largely redundant in c++. Why does c# have them?

867


Explain the difference between class and interface in .net?

499


What is the difference between integer and double?

555


What is the use of list in c#?

547


What is generic method in c#?

571


What is class sortedlist underneath?

632


How do namespaces work?

620


Can the nested class access, the containing class. Give an example?

540