Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Difference between abstract factory pattern and factory method pattern in .NET with example.

3 Answers   ACS, IBM, Keane India Ltd,


Page Life Cycle in ASP.NET

2 Answers   Syntel,


What does session_start () do?

0 Answers  


Explain the difference between panel and groupbox classes using .net?

0 Answers  


What is CTE in sql server 2005?

3 Answers   Minecode,






What are client activated objects?

0 Answers  


What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?

4 Answers  


Define repository pattern in mvc.net? : asp.net mvc

0 Answers  


How can you handle exceptions in asp.net?

0 Answers  


What is asp.net? How is it different from asp?

0 Answers  


What is caching? Explain.

0 Answers  


What are the different modes for the sessionstates in the web.config file?

2 Answers  






Categories