![]() Related Questions C# requires only a single parameter for delegates: the method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of Latest Answer : This article is good.IntroductionIn this article I am going to share my knowledge on Delegates in C#.This would explain the Delegate using simple examples so that the beginner can understand the same.What is Delegate?Definition:Delegate is type which ... From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class? With regard to versioning, interfaces are less flexible than classes. With a class, you can ship version 1 and then, in version 2, decide to add another method. As long as the method is not abstract (i.e., A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers. Latest Answer : A typical example of delegate usage can be found in event handling. For example, when the event is raised that the selected index of a dropdown list changed, we want method "ddlFoo_SelectedIndexChanged(object sender, EventArgs e)" to be ... It is a delegate that points to and eventually fires off several methods. Latest Answer : Ans:Yes, It is a delegate that points to and eventually fires off several methods. ... .NET FRAMEWORK1. What is .NET Framework?The .NET Framework has two main components: the common language runtime and the .NET Framework class library.You can think of the runtime as an agent that manages Latest Answer : The .NET framework is a platform over which multiple languages are running.The 2 main components are
1. FRAMEWORK CLASS LIBRARY2. COMMON LANGUAGE RUNTIMEIt's features like CTS provide Cross Language Interoprabality.The CLR is the main Governing body ... Read Answers (1) | Asked by : Prasanna Muthukrishnan Skill/Topic: IntermediateA) a delegate having multiple handlers assigned to itB) a delegate called multiple timesC) a delegate which has multiple implementations Latest Answer : A delegate having multiple handlers assigned to it ... Skill/Topic: AdvancedA) COMB) a function pointerC) a pointer Latest Answer : B) a function pointer ... Skill/Topic: AdvancedA) delegate {MyMethod( int y) }B) delegate void MyMethod(int y) ;C) delegate: MyMethod (int y) Latest Answer : delegate: MyMethod (int y) ... A) TrueB) FalseExplanation: It is possible and such delegates are called as Multicast delegates Latest Answer : FalseIn some cases you may want to call not just one, but two or more methods through a single delegate. This is known as multicasting. You accomplish multicasting by encapsulating the various methods in delegates, and then you combine the delegates using ... Latest Answer : Delegate to function--- is same as---- pointer to object.Delegates are function pointers.They are used when the function which needs to be called is not know at compile time.Pointers, on the other hand, are used to point to variables or object references ... Tags : Pointer
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||