linq-expressions
C# coercion operator?
I got this test: [Fact] public void EverythingIsMappedJustFine(){ new AutoMapperTask().Execute(); Mapper.AssertConfigurationIsValid();[详细]
2023-01-19 11:17 分类:问答Convert MethodBody to Expression Tree
Is there a way to convert a MethodBody (or other Reflection 开发者_如何学Ctechnique) into a System.Linq.Expressions.Expression tree? It is indeed possible, see DelegateDecompiler:[详细]
2023-01-13 20:33 分类:问答Why are some object properties UnaryExpression and others MemberExpression?
Acting on the answer to my Select a model property using a lambda and not a string property name question, wanting to add properties to a collection as follows:[详细]
2023-01-13 05:45 分类:问答Linq to Nhibernate - Compare 2 lists
I have 2 lists and I need to know if there are any matches.I\'ve tried using request.Interests.Intersect(x.Post.Tags.Split(\' \')).Count() > 0 but I get the error[详细]
2023-01-11 02:26 分类:问答How to Transform a LINQ Expression when you do not have one of the parameters when you define it
I\'m trying to build more generic query functionality into my application. What I\'d like to do is define objects which given an predicate expression can apply that to an iqueryable with a value that[详细]
2023-01-06 00:12 分类:问答How do I access a Dictionary Item using Linq Expressions
I want to build a Lambda Expression using Linq Expressions that is able to access an item in a \'property bag\' style Dictionary using a String index.I am using .Net 4.[详细]
2023-01-04 00:42 分类:问答Should methods containing LINQ expressions be tested / mocked?
Assuming I have a class with a method that takes a System.Linq.Expressions.Expression as a parameter, how much value is there in unit testing it?[详细]
2022-12-27 22:45 分类:问答How do I compose Linq Expressions? ie Func<Exp<Func<X, Y>>, Exp<Func<Y, Z>>, Exp<Func<X, Z>>>
I\'m creating a Validator<T> class. I\'m attempting to implement the Linq SelectMany extension methods for my validator to be able to compose expressions using a Linq query and validate the fina[详细]
2022-12-21 08:43 分类:问答How do I Emit a System.Linq.Expression?
I\'ve got some code that generates various Func<> delegates using System.Linq.Expressions and Expression.Lambda<Func<>>.Compile() etc. I would like to be able to serialize the genera[详细]
2022-12-21 04:50 分类:问答WhereNot linq expression
I am trying to create an extension \"WhereNot\" So I can use: Dim x = \"Hello world \" Dim y = x.Split.WhereNot(AddressOf String.IsNullOrEmpty)[详细]
2022-12-19 23:53 分类:问答