Hello Friends, In one of my previous article I have discussed about the delegates in C#. I have continued my discussion by explaining the different type of delegates provided in the .NET framework. But I have seen many developers wondering why should we use delegates in C# or vb.net in the .NET framework.
[Read more…] about Why do we need delegates in C#delegates
Understanding events in C# with Example
Events in C#
In one of my previous article I have discussed about the delegates in C#. In this article I will discuss about the events in C# and .NET framework and I will use C# as the programming language for the real programming example.
Learning C# – Anonymous methods and Lambda Expressions
Anonymous functions and Lambda Expressions
As we know from my previous post of the delegates in C#, that delegates are reference type which take functions as parameters which would be in-turn executed once the delegate is invoked. In this articleI will discuss about the anonymous functions and lambda expressions in C# which are introduced in .NET framework 2.0 and 3.0 respectively.
[Read more…] about Learning C# – Anonymous methods and Lambda Expressions
Func, Action and Predicate in C# With Example
Func, Action And Predicate Explained
I have covered the basics about the delegates in one of my previous blogs. In this article I would like to cover the three type of delegates viz. Func, Action and Predicate in C# with example, which are used very frequently as the arguments for the extension methods for collections provided by .NET framework. But before start talking about these three type of delegates, I want to discuss about the Generics in delegates.
[Read more…] about Func, Action and Predicate in C# With Example