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

hi wrever i go thy r asking depth abt 3-tier architecture i.e, hw to deploy 3 layers into 3 servers i do nt have much idea on deployment. can any one send me the tips or code if u hav kindly mail me.

1 Answers   Wipro,


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

0 Answers   MindCracker,


What you mean by partial Class in asp.net 2.0?

3 Answers   TCS,


What is difference between cache and session?

0 Answers  


True or False: To test a Web service you must create a windows application or Web application to consume this service?

1 Answers  


What are clr?cts?cls?

4 Answers   e4e, HCL, Microsoft, Tata Communications,


Explain MVC model binders?

0 Answers   B-Ways TecnoSoft,


What is the sequence in which ASP.NET events are processed?

0 Answers  


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

0 Answers  


What are web beacons used for?

0 Answers  


What is Assembly?

3 Answers   Inspira Technologies,


Difference between singleton and singlecall.

0 Answers  


Categories