why we are using delegates and in which condition it is
required?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
What Are The Difference Between AutoEventWireup="true" and AutoEventWireup="False"
12 Answers Phoenix Technologies,
What is customer control and user control?
What is early binding and Late binding. Difference which is better ?
What is the use of ASP.NET routing?
Describe the difference between inline and code behind?
How you will handle session when deploying application in more than a server?
What are the steps involved to fill a dataset?
What language is asp.net written in?
Differences between VB.Net and C#, related to OOPS concepts
what is the jit? what is the type of jit and purpose of it>
How do you define authentication in Web.Config?
2 Answers Accenture, BirlaSoft, IBM,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)