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 is the difference between application state and session state in asp net?

793


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1840


What is application in asp net?

701


What is the use of worker process in asp.net?

759


Which browsers support the xmlhttprequest object?

743


Can you dynamically assign a Master Page?

784


What is application variable?

739


Where would you use an ihttpmodule, and what are the limitations of any?

797


What is directive in asp net?

777


What is Cookies Less Session?

831


How can we inherit a static member?

817


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5333


What is the best Macanism to clear the Cache in asp.net

985


What are type/key pairs in client script registration?

822


what are the web form events available in asp.net?

809