Currying Expressions in C#
问题 I am trying to build up an expression tree that I can feed into Linq2SQL so that it will generate a nice clean query. My purpose is to build a filter that takes an arbitrary set of words to AND and NOT (or OR and NOT) together. Because I want to vary the fields that I search on I preferably want to compose a list of Expresssion<Func<T, string, bool>> 's together (where T is the entity I am operating on) by calling a variety of helper functions. Then I would receive an array of words and loop