linq-to-objects
Select Items from List<object> by conitaining List<guid> in C#
I am having the ListAllUsers . User having propeorty id(as Guid),na开发者_开发百科me(as String),address(as String). I am having another List ids of users id which are selected from ui. I want to get L[详细]
2023-04-12 05:01 分类:问答Generic collection fill by var value
In my code, I need help to put result value into oList NorthwindDataContext db = new NorthwindDataCo开发者_Go百科ntext();[详细]
2023-04-12 01:53 分类:问答property remove from the list
Remove property from a list NorthwindDataContext db = new NorthwindDataContext(); List<CategorySml> oList = new List<CategorySml>();[详细]
2023-04-11 17:19 分类:问答Linq inside of Linq causing sequence to return no results
Here are my classes: public class XDetail { public string Name { get; set; } public int ID { get; set; } }[详细]
2023-04-11 16:44 分类:问答Unable to Cast() generic dictionary item to DictionaryEntry when enumerated via non-generic IDictionary
I have some code that iterates over a non-generic IDictionary by first calling the LINQ Cast method. However I get an invalid cast exception when passing a generic dictionary implementation even thoug[详细]
2023-04-11 14:23 分类:问答LINQ to Objects and improved perf with an Index?
I am using LINQ to Objects and wonder if it is possible to improve the performance of my queries by making use of an index that I have. This is best explained with an example. Imagine a simple type...[详细]
2023-04-10 15:59 分类:问答How to PLINQ an existing LINQ query with Joins?
I\'m using LINQ to compare two DataSets with each other to create new rows and update existing. I\'ve noticed that the complete comparison lasts ~1,5 hours and only one of the two cores is busy(Task-M[详细]
2023-04-09 04:37 分类:问答LINQ query records based on date array
I have a table (I am using Entity Model) and filtered that table using LINQ query which is working fine.[详细]
2023-04-08 00:42 分类:问答What is meant by "Linq evaluates query one method at a time"?
I\'ve read somewhere that \"Linq evaluates query one method at a time\". What exactly is it meant by that? Perhaps that operators are called in the order specified – for example, in the following cod[详细]
2023-04-07 11:49 分类:问答Get duplicates for two columns with LINQ
LINQ drives me crazy. Why does following query not return the duplicates, whereas it works with only one identifier? Where is my error?[详细]
2023-04-06 19:47 分类:问答