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

In Code-Behind class which kind of code (server or client) is found ?

794


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

1776


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1735


Why do we need Sessions?

769


Which is better asp.net or php?

753


What are the asp.net 2.0 features?

748


What is a web based system?

699


Disable Mouse right click on web page in asp.net?

773


How does u call and execute a sp in .net?

749


What is a multilingual website?

771


Give some salient points of difference between request processor and request dispatcher.

849


How would you implement inheritance using c#?

783


Can we add code files of different languages in app_code folder?

848


What is application variable in asp.net?

675


What are the disadvantages of view state?

833