expression-trees
How to use Expression.IfThenElse in C#
I have a method in a repository: Query<T>(System.L开发者_开发知识库inq.Expressions.Expression<Func<T,bool>> function)[详细]
2023-03-21 13:14 分类:问答Accessing indexer from expression tree
I am working on a filtering function. The filter will be an expression tree build by an user. There will be about 30 fields the user can use for filtering. I think the开发者_如何学编程 best way is to[详细]
2023-03-21 09:03 分类:问答How to Combine two lambdas [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: com开发者_JS百科bining two lamba expressions in c#[详细]
2023-03-20 22:27 分类:问答How to get this expression value model => model.Name?
I am trying to get below expression value by compiling and invoking but i get some errors and no success till now.[详细]
2023-03-20 13:48 分类:问答How do I translate an expression tree of one type to a different expression type?
If I have two nearly identical classes Animal and AnimalViewModel and an expression tree related to the viewmodel, how can I translate it to Animal?[详细]
2023-03-20 04:52 分类:问答Use of custom expression in LINQ leads to a query for each use
I have the following p开发者_运维百科roblem: In our database we record helpdesk tickets and we book hours under tickets. Between those is a visit report. So it is: ticket => visitreport => hours.[详细]
2023-03-19 22:15 分类:问答C# Expression Tree's always wrapping with ()
I\'m trying to create an Expression tree that will determine if a line in a word document is deleted or not.[详细]
2023-03-18 21:29 分类:问答Get action from controller using a lambda expression
I\'m trying to create a method which creates a url based on the controllername and the actionname. I don\'t want to use magic strings, so I was thinking about a method taking a lambda expression as a[详细]
2023-03-18 14:58 分类:问答How to recognize a Lambda MemberExpression of type "field reference"
I have had to find a way to substitute implicit field references in a lambda expression with it\'s real value. For example :[详细]
2023-03-18 06:37 分类:问答How do i expand on this expression?
I have this bit of code as an example, basically it spits out p => p.fieldname.StartsWith(\"123\")[详细]
2023-03-18 06:33 分类:问答