About 21,800,000 results
Open links in new tab
  1. c# - How can I get LINQ to return the object which has the max value ...

    How to perform .Max () on a property of all objects in a collection and return the object with maximum value [duplicate] (9 answers)

  2. Use LINQ to get items in one List<>, that are not in another List<>

    I would assume there's a simple LINQ query to do this, I'm just not exactly sure how. Given this piece of code: class Program { static void Main(string[] args) { List&lt;Person&gt;

  3. LINQ: combining join and group by - Stack Overflow

    Feb 7, 2012 · I have a query that combines a join and a group, but I have a problem. The query is like: var result = from p in Products join bp in BaseProducts on p.BaseProductId equal...

  4. Is a LINQ statement faster than a 'foreach' loop? - Stack Overflow

    Jul 1, 2010 · With other LINQ providers like LINQ-to-SQL, then since the query can filter at the server it should be much better than a flat foreach, but most likely you wouldn't have done a blanket "select * …

  5. c# - LEFT OUTER JOIN in LINQ - Stack Overflow

    Apr 11, 2014 · How to perform left outer join in C# LINQ to objects without using join-on-equals-into clauses? Is there any way to do that with where clause? Correct problem: For inner join is easy and I …

  6. 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 then …

  7. How do you perform a left outer join using linq extension methods

    How do you perform a left outer join using linq extension methods Asked 16 years, 9 months ago Modified 10 months ago Viewed 312k times

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

    Select distinct using linq [duplicate] Asked 12 years, 1 month ago Modified 8 years, 4 months ago Viewed 848k times

  9. LINQ equivalent of foreach for IEnumerable<T> - Stack Overflow

    I'd like to do the equivalent of the following in LINQ, but I can't figure out how: As others have pointed out here and abroad LINQ and IEnumerable methods are expected to be side-effect free. Do you …

  10. Multiple "order by" in LINQ - Stack Overflow

    The LINQ expression could not be translated and will be evaluated locally. Protected question. To answer this question, you need to have at least 10 reputation on this site (not counting the …