Generic Delegates (Action, Func, Predicate) – Interview Questions

Collection of typically Interview Questions on generic delegates for interview preparation. you can also read more about delegates, callbacks, Multicast Delegates, Generic Delegates. Alternatively, you can also test your knowledge by an online free quiz for delegates, multicast delegate, generic delegates. Interview Question: What are Generic Delegates in C#? Answer: The Func , Action and Predicate are the three generic delegates. We can make use of all these three predefined … Continue reading Generic Delegates (Action, Func, Predicate) – Interview Questions

Func, Action & Predicate – Generic Delegates

Introduction In an earlier post, we have discussed delegates, multicast delegate. In this article, I am going to discuss the Generic Delegates in C#. In .NET Framework 3.5, C# introduces Generic delegate which allows to invoke the delegates without defining the delegate instance. To understand the Generic Delegates, we should have the basic knowledge of Delegates. I would recommend checking earlier posts related to delegates, … Continue reading Func, Action & Predicate – Generic Delegates

Delegates Interview Questions

Collection of typically Interview Questions on delegates for interview preparation. you can also read more about delegates, callbacks, and Multicast Delegates. Alternatively, you can also test your knowledge by an online free quiz for delegates and multicast delegate. Interview question: What is a delegate? Answer: A delegate is a type-safe function pointer. Using delegates you can pass methods as parameters. To pass a method as … Continue reading Delegates Interview Questions

Multicast Delegates Interview Questions

Collection of typically Interview Questions on Multicast delegates for interview preparation. you can also read more about delegates, callbacks, Multicast Delegates, Generic Delegates. Alternatively, you can also test your knowledge by an online free quiz for delegates, multicast delegate, generic delegates. Interview Question: What is Multicast delegate/ chaining delegates? Answer: The capability of calling multiple methods on a single event is called as Multicast delegate or chaining delegates, Multicast delegates can be … Continue reading Multicast Delegates Interview Questions

Delegates

Introduction When a head of state dies, the President of the United States typically does not have time to attend the funeral personally. Instead, he dispatches a delegate. Often this delegate is the Vice President, but sometimes the VP is unavailable, and the President must send someone else, such as the Secretary of State or even the First Lady. He does not want to “hardwire” … Continue reading Delegates