linq-to-objects
What is wrong with this LINQ query?
I am trying to write a LINQ query against two objects ( SPListItemCollection and List<SPListItem>).[详细]
2023-03-08 04:55 分类:问答Equivalent sorting with LINQ orderby keyword vs. OrderBy extension method
I\'m trying to come up with a set of chained OrderBy/ThenBy extension method calls that is equivalent to a LINQ statement using the orderby keyword.[详细]
2023-03-08 03:44 分类:问答Memory saving in GroupBy
Running LINQ to Objects GroupBy() method for many items (gigabytes) can be memory consuming. If the IEnumerable<T> is already开发者_Python百科 ordered by the key, we could write an GroupBy that[详细]
2023-03-07 23:42 分类:问答Error in LINQ Left JOIN
i have written below query in LINQ to perform left join but its throwing error: var qry = from c in dc.category_feature_Name_trans_SelectAll_Active()[详细]
2023-03-07 19:07 分类:问答how to `.Take()` on a string and get a string at the end?
LINQ to Objects supports queries on string objects but when I use code such as below: string SomeText = \"this is some text in a string\";[详细]
2023-03-07 18:05 分类:问答Dynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>
I found an example in the VS2008 Examples for Dynamic LINQ that allows you t开发者_运维百科o use a SQL-like string (e.g. OrderBy("Name, Age DESC")) for ordering. Unfortunately, the method in[详细]
2023-03-07 15:53 分类:问答C#, objectCollection.OfType<T>() and foreach (T item in objectCollection), IEnumerable to IEnumerable<T>
To my personal coding style belongs Enumerable.OfType<T>(). I use it everywhere it makes a little bit of sense. Especially IEnumerable<T> allows mighty linqToObject functionallity. I hat开[详细]
2023-03-07 06:36 分类:问答Extending Marc Gravell's Dynamic Linq OrderBy
I found Marc Gravell\'s dynamic order by great: Dynamic LINQ OrderBy on IEnumerable<T> I\'ve put it in a class, LinqHelper.In this class I also have created two new classes, so that in my code[详细]
2023-03-07 01:26 分类:问答linq objects grouping
I have people object and poeple have property group that make them belong to different groups. I want to get List and put it in an object GrouppedPeople, in which there would be List coll. One coll el[详细]
2023-03-05 06:36 分类:问答LINQ Query results and string methods
First of all let me apologize for the wall of code. Basically, I have two two queries against Sharepoint lists. The code seems to work great if I comment a couple of lines. Here is the code:[详细]
2023-03-03 19:12 分类:问答