Lambda Expressions

Introduction In the earlier post, we talk about anonymous methods, we had seen that by using anonymous methods, we can define a method without providing a name to the method, in addition to it, we were also not required to specify the access specifier and the return type of the method. Lambda expressions are a further shortcut to writing anonymous methods. To understand more let’s … Continue reading Lambda Expressions

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