expression-trees
How do I chain a task to another task without knowing the first task's result type
Suppose I have an API that returns a Task as an object: private static object CreateTask() { return Task.Factory.StartNew(() => \"Task string\");[详细]
2023-03-28 18:16 分类:问答Analyzing a Linq expression
I would like to know if an IQueryable object\'s Expression contains a certain \"Where clause\". For example, given as IQuer开发者_运维技巧yable instance, which could be something like:[详细]
2023-03-28 17:03 分类:问答Expression tree for String.IndexOf method
How should I construct Expression tree for string.IndexOf(\"substring\", StringComparison.OrdinalIgnoreCase)?[详细]
2023-03-28 10:30 分类:问答lambda expression in boo
dose boo understand Expression tree? I try to compile this line with sharp develop exp as System.Linq.Expressions.Expression[of Func[of SomeClass, bool]] = { p as Text | retu开发者_运维百科rn (p.Nam[详细]
2023-03-27 04:12 分类:问答"The binary operator Add is not defined for the types 'System.String' and 'System.String'." -- Really?
When trying to run the following code: Expression<Func<string, string>> stringExpression = Expression.Lambda<Func<string, string>>([详细]
2023-03-27 03:31 分类:问答How to compile an Expression down to the actual result?
I am building an API around a web service call using Expressions to allow a developer to specify a query and have an ExpressionVisitor convert the Expression into the query string.The request is XML w[详细]
2023-03-26 21:03 分类:问答How to create a dynamic 'contains or LIKE' Expression to be used with Linq against OData service
I\'m try\'n to create a dynamic query tool using System.Linq.Expressions.Expression (WPF/c#4.0) It runs against an OData Service.[详细]
2023-03-25 10:09 分类:问答Map Domain Entity Properties to Word Bookmarks
We need to print Word documents that have bookmarks in them. We also have domain entities whose properties map to one (or more) of the bookmarks in the Word documents. Right now, to test, we have a sw[详细]
2023-03-24 18:57 分类:问答Converting Linq to XSLT
Is there a way to convert LINQ queries into XSLT? the same way LINQ can be converted to SQL? I mean if i have a solid well defined XML(Conforms to an XSD) is开发者_运维问答 there a way to compile the[详细]
2023-03-24 18:05 分类:问答Can't find OrderBy on Queryable with the "supplied arguments".
I have a method that I want to use to sort a list: private static IQueryable<T> BuildQuery<T>(IQueryable<T> query,[详细]
2023-03-24 08:23 分类:问答