About 12,500,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. c# - If Else in LINQ - Stack Overflow

    Jan 14, 2009 · Is it possible to use If Else conditional in a LINQ query? Something like from p in db.products if p.price>0 select new { Owner=from q in db.Users select q.Name } else select …

  3. 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 …

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

    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 own data …

  5. c# - Linq - Where ().Where () is AND or OR? - Stack Overflow

    Jul 27, 2016 · Linq - Where ().Where () is AND or OR? Asked 9 years, 3 months ago Modified 4 years, 3 months ago Viewed 20k times

  6. c# - LINQ performance FAQ - Stack Overflow

    Oct 28, 2010 · Linq, as a built-in technology, has performance advantages and disadvantages. The code behind the extension methods has had considerable performance attention paid to it …

  7. LINQ .Any VS .Exists - What's the difference? - Stack Overflow

    The difference is that Any is an extension method for any IEnumerable<T> defined in System.Linq.Enumerable. It can be used on any IEnumerable<T> instance. Exists does not …

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

    Select distinct using linq [duplicate] Asked 12 years ago Modified 8 years, 2 months ago Viewed 847k times

  9. c# - Group by in LINQ - Stack Overflow

    Absolutely - you basically want: var results = from p in persons group p.car by p.PersonId into g select new { PersonId = g.Key, Cars = g.ToList() }; Or as a non-query expression: var results = …

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

    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 something in …