why we are using delegates and in which condition it is
required?
Answers were Sorted based on User's Feedback
Answer / praveenkumarreddy.m
Delegates are used to refer multiple functions.Delegates
used in creating events in c#.net.
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / santosh
delegates are similler to function pointers.. main it is
callback methods.. we can call the methods at time more
than one methods.. delegates are 2 types 1.single cast
delegets 2.multicaste delegates like sysntax:
access modifiers delegate returntype
delegatename("arguments")
{
}
// creating reference for delegates
objectname.delegatename();
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / santosh bind
When the pass method as argument
Ex- public Delegate void AddNum(int a,int b)
Is This Answer Correct ? | 0 Yes | 0 No |
What is an assembly?
What are themes and skins in 2.0, explain usage scenario?
What is the full meaning of asp.net?
What is a multilingual website?
What are the merits and demerits of viewstate?
Explain the difference between inline and code behind - which is best in?
What is the significance of proxy user?
How does the regular expression validator work? What are two situations when you might want to use one?
Can you change a master page dynamically at runtime? How?
How is a session stored and maintained in asp.net?
if i have a web page, and after the postback i dont to maintain the viewstate. How can we maintain in web application?
How do I upload a file from my ASP.NET page?