score:1
take a look at this blog entry.
basically, you're looking to do a "partial evaluation" of the expression to account for the value introduced by the closure. this msdn walkthrough (under the heading "adding the expression evaluator") has the code that is referenced by the blog entry for incorporating the unevaluated closure members in the resulting string.
now, it may not work with complex expressions, but it looks like it will get you on your way. just keep in mind that it doesn't normalize expressions. that is x => x.name == "erik"
is functionally equivalent to x => "erik" == x.name
(and all other variants).
Source: stackoverflow.com
Related Query
- How to get unique string from a lambda expression
- How to get leaf node from a nested collection using lambda expression
- c# Lambda Expression - Get property value from string
- How to create dynamic lambda based Linq expression from a string in C#?
- How to get the value of a field from Lambda expression for ForEach()?
- How to get an Expression from a Lambda Expression
- How to get just value from lambda expression
- How to get value from string expression
- How to get distinct instance from a list by Lambda or LINQ
- Get N max numbers from a List<int> using lambda expression
- Creating lambda expression from a string
- How to get property name from expression
- Access property in lambda expression from string when using LINQ
- How to get all values as a single string from NameValueCollection?
- How can i get a string from linq expression?
- Linq Lambda get two properties as string from aggretation
- c# Expression Lambda to Func<T> from string
- How do I get property names of a type using a lambda expression and anonymous type?
- How to get unique values from two list of dictionaries using Linq?
- Creating a string from a lambda expression
- How can I get back from an un-typed Expression to a typed one?
- How do I get an array of repeated characters from a string using LINQ?
- how to get string from string list?
- C# LINQ How to get a data source from a db?
- How to use Lambda expression to replace string parameter
- How to get mismatch position using Linq or lambda operation on two string array
- C# Lambda Expression for Unique Record for string in list of List
- How can I turn a lambda expression specifying a property into an asp.net mvc compatible 'name' string representing the same?
- How to get the string value of ExecuteCommand (or ExecuteQuery) from LINQ?
- How to get string list from a linq query?
More Query from same tag
- Create a hierarchical JSON Http response structure using LinQ
- Unable to cast object of type 'System.Collections.Generic.HashSet`1[libraryWebProject.Major]' to type 'libraryWebProject.Major'
- c# - Linq Query - Keeps hitting catch
- Linq Select why am I getting a result?
- Fastest way to see if a entity's child table contains any records
- Type Conversion error in LINQ
- verify cummulative sum verify property efficiently with LINQ
- how take data from xml using linq to xml
- EF How to query more entities with .include() and using repository pattern
- Iterating through LinQ to Entities results
- When is the value of a property set after a LINQ expression is evaluated?
- Select from list Lambda or linq
- Linq result return zero vs null
- Filter query by multiple parameters from the list of objects
- What would it take to create a C# compilation error, when you use custom methods where Expression is expected?
- Automatically checking for NULL relationships with LINQ queries
- Query always returns all records
- Get parent record two levels up
- System.Data.EntityProxies group by keeps doing tons of selects GroupBy linq
- How to display the collection in the library dynamically Highcharts - Bind collection with Highcharts in MVC
- How to pivot a normal sql query with dynamic columns
- Like operator or using wildcards in LINQ to Entities
- linq max date from multiple columns and tables
- Entity Framework add local data to list from database
- How do I rollback a failed InsertOnSubmit? (VB.NET LINQ)
- Nested Linq query returns three times the result?
- Remote Attribute not allowing Post
- Fill ICollection from List, ICollection returns null
- How to pass variable to .SelectMany
- LINQ to get sub-array