About 34,800,000 results
Open links in new tab
  1. c# - Proper LINQ where clauses - Stack Overflow

    Apr 27, 2015 · When this is a linq-to-object call, multiple where clauses will lead to a chain of IEnumerables that read from each other. Using the single-clause form will help performance …

  2. LINQ: Select an object and change some properties without …

    Nov 19, 2019 · I want to change some properties of a LINQ query result object without creating a new object and manually setting every property. Is this possible? Example: var list = from …

  3. If condition in LINQ Where clause - Stack Overflow

    Sep 10, 2010 · With Linq, can I use a conditional statement inside of a Where extension method?

  4. c# - What is LINQ and what does it do? - Stack Overflow

    Aug 2, 2018 · LINQ is a technology for extracting data using an idiom derived from the C# programming language. While it owes much in functional design to SQL, it is fundamentally its …

  5. Update all objects in a collection using LINQ - Stack Overflow

    Dec 30, 2008 · Is there a way to do the following using LINQ? foreach (var c in collection) { c.PropertyToSet = value; } To clarify, I want to iterate through each object in a collection and …

  6. Sort list in C# with LINQ - Stack Overflow

    Jul 3, 2012 · I want to sort a list in C#. Like where structure property AVC goes to true then show them first then AVC goes to false. Are any way to do this in C# LINQ?

  7. c# - Where IN clause in LINQ - Stack Overflow

    Jun 6, 2009 · How to make a where in clause similar to one in SQL Server? I made one by myself but can anyone please improve this? public List<State> Wherein(string …

  8. How can I conditionally apply a Linq operator? - Stack Overflow

    Aug 14, 2008 · We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I …

  9. c# - What is the "=>" sign in LINQ queries? - Stack Overflow

    Apr 10, 2015 · When you use it in a linq expression, think of it as though the lambda function is being called on every element in the collection (which I believe is exactly what happens with …

  10. c# - Select distinct using linq - Stack Overflow

    Select distinct using linq [duplicate] Asked 11 years, 9 months ago Modified 7 years, 11 months ago Viewed 846k times