Namespace: System.Linq.Expressions

Provides types that represent expressions in a C# statement tree. This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Types

Expression Class

Members

Expression Visit(Expression node)
Visits the children of the expression.
static MethodCallExpression Call(Expression instance, MethodInfo method, IEnumerable<Expression> arguments)
Creates a MethodCallExpression that represents a call to a method.
static ConstantExpression Constant(object value)
Creates a ConstantExpression that represents a constant value.
static ParameterExpression Parameter(Type type, string name)
Creates a ParameterExpression that represents a parameter.
static LambdaExpression Lambda(Expression body, params ParameterExpression[] parameters)
Creates a LambdaExpression that represents a lambda expression.
static Expression Lambda(Expression body, params ParameterExpression[] parameters)
Creates a strongly-typed LambdaExpression that represents a lambda expression.
static MemberExpression Field(Expression expression, MemberInfo member)
Creates a MemberExpression that represents accessing a field or property.
static BinaryExpression Add(Expression left, Expression right)
Creates a BinaryExpression that represents an addition operation.