linq-to-objects
Build lambda expression dynamically
I am trying to sort a object collection dynamically. Ideally I would want it to do the below functionality where I could specify the criter开发者_如何学Pythonia at runtime.[详细]
2023-03-03 17:04 分类:问答LINQ-to-Objects - What's wrong with this simple Composite Key grouping?
Ok guys... first time posting a question on here.I\'m trying to demo a couple features of LINQ and have hit a snag. The following query isn\'t performing as expected:[详细]
2023-03-03 10:42 分类:问答When to use JOIN and when not to in LINQ to entities
I am new to Linq and I have seen that if there are multiple entities, some use the multiple FROM syntax like this:[详细]
2023-03-01 22:06 分类:问答What is the most efficient collection class in C# for string search
string[] words = System.IO.File.ReadAllLines(\"word.txt\"); var query = from word in words where word.Length > \"abe\".Length开发者_JAVA技巧 && word.StartsWith(\"abe\")[详细]
2023-03-01 15:50 分类:问答Performace issue using Foreach in LINQ
I am using an IList<Employee> where i get the records more then开发者_运维问答 5000 by using linq which could be better? empdetailsList has 5000[详细]
2023-03-01 12:40 分类:问答Getting keys from a Lookup
How do I get the collection of keys from a Loo开发者_JAVA技巧kup<> I created through the .ToLookup() method?[详细]
2023-03-01 00:09 分类:问答LINQ: Checking if a string (variable) contains any of the list of properties
I need to check if my \"constant\" contains (string) of any items of my collection. My constant is here:[详细]
2023-02-28 18:14 分类:问答LINQ 2 Objects Having clause
Given a collection of MyType { int Index, string Name } what would be the technically efficient way of getting Min/Max index items?[详细]
2023-02-27 14:44 分类:问答How to get an empty list of a collection?
I have a colle开发者_开发知识库ction of anonymous class and I want to return an empty list of it.[详细]
2023-02-27 04:17 分类:问答Distinct with custom comparer
Trying to use Distinct() using a custom comparer and it gives me the error: cannot be inferred from the usage. Try specifying the type arguments explicitly[详细]
2023-02-27 01:43 分类:问答
加载中,请稍侯......