Table of Contents

Class PredicateBuilder

Namespace
Shift.Common.Linq
Assembly
Shift.Common.dll

See http://www.albahari.com/expressions for information and examples.

public static class PredicateBuilder
Inheritance
PredicateBuilder
Inherited Members

Methods

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

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

Parameters

expr1 Expression<Func<T, bool>>
expr2 Expression<Func<T, bool>>

Returns

Expression<Func<T, bool>>

Type Parameters

T

False<T>()

public static Expression<Func<T, bool>> False<T>()

Returns

Expression<Func<T, bool>>

Type Parameters

T

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

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

Parameters

expr1 Expression<Func<T, bool>>
expr2 Expression<Func<T, bool>>

Returns

Expression<Func<T, bool>>

Type Parameters

T

True<T>()

public static Expression<Func<T, bool>> True<T>()

Returns

Expression<Func<T, bool>>

Type Parameters

T