what are delegates? How you used then in your project?
Answer Posted / lavanya
Delegates are pointers to functions
we pass the address of a method along with the
parameters that we want call
ex:
public delegate void delg1(string s)
we call this delg1 as
del=delg1(h1);
del("hello")
here h1 is a method
Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
why delegate is type safe?
What is arraylist class in c#?
What are the return types in c#?
What is the use of protected in c#?
Define thread?
Enlist all the components of an ado.net framework?
What is double c#?
How do I open the console window?
Can we inherit partial class in c#?
How do generics work in c#?
Is c# pass by reference?
Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?
What is datatable in c#?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
What is a byte in c#?