why we are using delegates and in which condition it is
required?

Answers were Sorted based on User's Feedback



why we are using delegates and in which condition it is required?..

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

why we are using delegates and in which condition it is required?..

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

why we are using delegates and in which condition it is required?..

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

Post New Answer

More ASP.NET Interview Questions

What is an assembly?

2 Answers   Value Labs,


What are themes and skins in 2.0, explain usage scenario?

0 Answers  


What is the full meaning of asp.net?

0 Answers  


What is a multilingual website?

0 Answers  


What are the merits and demerits of viewstate?

0 Answers   Siebel,






Explain the difference between inline and code behind - which is best in?

0 Answers  


What is the significance of proxy user?

0 Answers   MCN Solutions,


How does the regular expression validator work? What are two situations when you might want to use one?

2 Answers  


Can you change a master page dynamically at runtime? How?

0 Answers  


How is a session stored and maintained in asp.net?

0 Answers  


if i have a web page, and after the postback i dont to maintain the viewstate. How can we maintain in web application?

4 Answers   CGI,


How do I upload a file from my ASP.NET page?

0 Answers  


Categories