1.

What is a delegate in .NET?

Answer»

A delegate is a .NET object which defines a METHOD signature and it can pass a function as a parameter.

Delegate ALWAYS points to a method that matches its specific signature. Users can encapsulate the reference of a method in a delegate object.

When we pass the delegate object in a program, it will call the referenced method. To CREATE a custom event in a CLASS, we can make use of delegate.



Discussion

No Comment Found