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 ilist c#?

713


Compare and contrast between the System.Array.CopyTo() and Clone()?

786


if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.

2211


What is the property of class?

797


What is the console on a mac?

713


Can hashtable have duplicate keys?

692


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

1049


Why is dll used?

784


What is lastindexof c#?

678


What is object type in c#?

746


Define xslt.

749


What is sqlcommand in c#?

722


What is a ienumerator?

726


What does char mean in c#?

731


what is the index value of the first element in an array?

718