Skip to main content
expression trees c#

Expression Trees in C# with an example

Before beginning with Expression Trees, let us first understand Expression in .NET In .NET, Expression is an abstract class which contains static methods and inherited by various types (like ParameterExpression, MethodCallExpression, BinaryExpression etc.) to create expression tree nodes of specific types. Also, all these expression-specific expression tree types are defined in System.Linq.Expressions namespace. Expression Trees […]

Read More

Anonymous Methods

Anonymous Methods in C# with example

First of all, as the name suggests, an anonymous method is a method without a name. Anonymous methods in C# can be defined using the delegate keyword and can be assigned to a variable of the delegate type. C# Anonymous Methods Probably anonymous methods were introduced in C# 2.0 version. To know more about C# features […]

Read More