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 a viewstate?

0 Answers  


What is the significance of attaching a profile while creating a user?

0 Answers   MCN Solutions,


how to retrieve property settings from xml .config file.

0 Answers  


What is the name of the process the browser uses to find the address of a web server? a) DMZ b) DNS c) Active Directory d) Database lookup

1 Answers   Syntax Softtech,


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

0 Answers  






Why Global.asax is used?

7 Answers   Perot Systems,


What is difference between ASP and ASP.NET ?

3 Answers   TCS,


Hi, I Dont know about Application and Session State management. Can anyone explain me with simple example?

1 Answers  


How can I create master page in asp net?

0 Answers  


How Response.flush works in server.Execute ?

1 Answers   Keane India Ltd, TCS,


Who creates jsessionid?

0 Answers  


What does the "EnableViewState" property do? Why would I want it on or off?

2 Answers   Photon Infotech, Siebel Systems, Syntax Softtech,


Categories