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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between viewstate and sessionstate?

562


What are the different method of navigation in asp.net?

563


What are session cookies?

540


What are the 3 levels at which content pages can be attached to Master Page?

577


Why do we need master page in asp.net?

530






What is the difference between abstract class vs interface? Can give me the real time examples?

486


What are the 3 types of web?

502


Do you know using sql cache invalidation?

527


Why cyclomatic complexity is important?

555


Which authentication uses a combination of windows and iis authentication?

578


What are the three parts of an http response?

525


How can we create Tree control in asp.net?

582


How can you handle errors in Web API?

589


Where is session cookies stored?

517


How would you get asp.net running in apache web servers? Explain it's limitations.

529