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 interval time of GC in .net

2 Answers  


Define view state.

0 Answers  


Is asp.net and .net same?

0 Answers  


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

0 Answers   Siebel,


Is asp.net a language?

0 Answers  






Explain the difference between an exe and a dll?

0 Answers  


Difference between DataView and DataTable

4 Answers  


How many types is controls is there in Asp.Net?If it means what are types of custom controls?Explain about user controls,Web server controls,Hrml server controls?

1 Answers   Cap Gemini, TCS,


What does passport and windows authentication mean in ASP.NET?

0 Answers   Amdocs,


Explain the disadvantages of viewstate?

0 Answers  


What are the Types of objects in ASP

0 Answers   Microsoft,


How to retrieve the information from datatable citywise in c#?

2 Answers   HCL,


Categories