linq-to-objects
Linq on windows phone
It appears I can use the .Where, .First, etc linq expressions in a Windows Phone 7 class library, but not Contains or FindIndex.Are they rea开发者_运维知识库lly not available at all, or is there somet[详细]
2023-03-12 10:24 分类:问答remove from List using Linq
So, I have a List of objects of class A that contains a List of objects of class B class A { ... List<B> bs;[详细]
2023-03-11 05:47 分类:问答Batch with Multiple GroupBy
I have a CSV file with records that need to be sorted and then grouped into arbitrary-sized batches (e.g. 300 max records per batch).Each batch might have less than 300 records, because the contents o[详细]
2023-03-10 12:42 分类:问答Why isn't Skip() in LINQ to objects optimized?
var res = new int[1000000].Skip(999999).First(); It would be great if this query would just use the indexer instead of traversing 999999 entries.[详细]
2023-03-10 07:51 分类:问答Linq-to-objects: creating a two-level hierarchy from a flat source
Let\'s say I have this simple structure class FooDefinition { public FooDefinition Parent { get; set; } }[详细]
2023-03-09 23:41 分类:问答LInq querying collection inside collection
my object contains a collection of collections . i like to get all child object ids and store it in a string array.[详细]
2023-03-09 18:04 分类:问答Creating linq expression with a subtype restriction
I have this list of type IEnumerable<MyBaseType> for which I am trying to create an extra where-clause to retrieve a specific item in the list. The specific value does only exist on subtype MyFi[详细]
2023-03-09 02:54 分类:问答nhibernate filter a list with another list of object
I\'m working on a multi f开发者_高级运维acet engine. I\'ve 2 types of Class : ResultProduct public int Id { get; set; }[详细]
2023-03-08 23:56 分类:问答Linq nested list expression
please I need your help with a Linq expression: I have nested objects with lists, this is how the main object hierarchy looks like (each dash is an atribute of the sub-class):[详细]
2023-03-08 20:28 分类:问答Joining three tables and using a left outer join
I have three tables.Two of them join equally but one will need to join with a left.I\'m finding a lot of code to do this in linq but between two tables only.[详细]
2023-03-08 12:47 分类:问答
加载中,请稍侯......