This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ExpressionBuilder | |
{ | |
private static readonly MethodInfo containsMethod = typeof(string).GetMethod("Contains"); | |
private static readonly MethodInfo toLowerMethod = typeof(string).GetMethod("ToLower", new Type[0] { }); | |
public static Func<T, bool> GetExpression<T>(IList<Filter> filters) | |
{ | |
ParameterExpression parameter = Expression.Parameter(typeof(T), "t"); | |
Expression expression = null; |