ExpressionExtensions Class

public static class ExpressionExtensions

No documentation is available.

Methods

NameDescription
AndAlso<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)Combines two expressions with a logical AND, properly rebinding parameters.
Negate<T>(Expression<Func<T, bool>>)Negates an expression.
OrElse<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)Combines two expressions with a logical OR, properly rebinding parameters.

AndAlso<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)

ExpressionExtensions.cs

Combines two expressions with a logical AND, properly rebinding parameters.

public static Expression<Func<T, bool>> AndAlso<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)

Negate<T>(Expression<Func<T, bool>>)

ExpressionExtensions.cs

Negates an expression.

public static Expression<Func<T, bool>> Negate<T>(this Expression<Func<T, bool>> expression)

Type parameters

T

Parameters

expression Expression<Func<T, bool>>

Returns

Expression<Func<T, bool>>

OrElse<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)

ExpressionExtensions.cs

Combines two expressions with a logical OR, properly rebinding parameters.

public static Expression<Func<T, bool>> OrElse<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)