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 are the Types of state management techniques

552


What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?

606


What are the options in ASP.NET to maintain state?

607


Who creates jsessionid?

550


Why session is used in asp.net?

516






What are type/key pairs in client script registration?

552


Can I stream live content/events?

566


What is a uri query?

540


Is data edited in the Repeater control?

569


Is it possible to change the index of primary key on table?

398


Give an example of cookie abuse.

584


Explain about the Class view window?

577


Why do we use asp.net?

570


Explain what is clr?

610


Where the assembly is stored in asp.net?

538