Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Learn key differences, practical use cases, and examples that demonstrate how these methods simplify data manipulation, making it easier to work with nested and complex data structures in C#.

Discover essential LINQ best practices for writing efficient, readable, and maintainable code in C#. Learn tips on query and method syntax, performance optimization, and effective use of lambda expressions and extension methods to enhance your .NET applications and streamline data querying.

When working with collections in C# .NET, FirstOrDefault and Find serve similar purposes of retrieving elements based on conditions. FirstOrDefault is versatile for any IEnumerable<T>, while Find is optimized for List<T>, offering potentially better performance in list operations.

LINQ (Language-Integrated Query) in .NET offers a unified, declarative way to query diverse data sources like objects, databases, XML, and more. It simplifies data manipulation with methods like Where, Select, and GroupBy, supporting both query and method syntax.

Learn how LINQ TakeWhile and SkipWhile use predicates to return or skip sequence elements in C#, including examples of combining both methods.

Learn how to optimize LINQ queries in C# web APIs using early filtering, selective projections, IQueryable, and deferred execution to reduce data processing and database round-trips.

This technique allows runtime composition of query predicates using logical conditions such as AND, OR, and NOT. By leveraging Expression Trees and lambda expressions, developers can programmatically build flexible queries for filtering data in applications, enhancing adaptability and performance.

LINQ (Language Integrated Query) provides powerful querying capabilities in C# to manipulate data collections. Among its arsenal of operators, Single, SingleOrDefault, First, and FirstOrDefault are frequently used to retrieve elements from sequences.

Using LINQ to SQL, insert data into databases effortlessly. Utilize LINQ query expressions, entity classes, and DataContext to map objects to database tables. Ensure proper error handling and concurrency control for robust data management.

Learn how C# LINQ expressions use query syntax to filter and select data from IEnumerable sequences, compared with foreach-based iteration.

LINQ, a cornerstone of C#, empowers developers to query data across various sources efficiently. This guide delves into the nuanced differences between First() and FirstOrDefault(), aiding in crafting resilient and optimized code.

In this article, I will demonstrate the exciting new additions to LINQ extension methods introduced in.NET 6: MinBy() and MaxBy(). Let's explore how these powerful methods simplify code, providing efficient solutions for selecting extreme values within a generic sequence.

Learn how LINQ compiled queries create reusable delegates, reduce query-compilation overhead, and improve performance for frequently executed or complex queries.

Misconceptions about the four LINQ methods. Single(), SingleOrDefault(), First(), and FirstOrDefault(). This article addresses misconceptions surrounding four LINQ methods—Single(), SingleOrDefault(), First(), and FirstOrDefault(). Clarifying differences and potential pitfalls helps prevent null references and invalid operator exceptions in code.

This article is an informative and in-depth exploration of LINQ (Language Integrated Query) within the context of C#, a widely used programming language in the software development industry. The guide delves into both the query syntax and method syntax aspects of LINQ, providing readers with a thorough understanding of how to effectively use LINQ to query and manipulate data in C# applications.

In this article I will try to explain how to use projections in LINQ with a collection of objects.

LINQ is a powerful feature in modern programming languages like C# that allows developers to perform queries on different types of data sources using a consistent syntax. With LINQ, you can query and manipulate data without worrying about the underlying data source, whether it's an in-memory collection, a database, or XML

Using the OrderBy and OrderByDescending Operator in LINQ: Sorting Collections

This article will cover LINQ to SQL basics for beginners to understand the framework and the underlying workings of the LINQ to SQL.

In this article, you will learn about LINQ. Language Integrated Query (LINQ) provides a way to query any type of data source. LINQ simplifies this situation by offering a consistent model for working with data across various kinds of data sources and formats.

This article is the next article in LINQ learning tutorials which will cover LINQ to XML basics.

In this article, you will learn about the basics of programming logic.

Learn how LINQ element operators return a single item from a collection, including ElementAt, First, Single, Last, and their OrDefault variants.

LINQ stands for Language Integrated Query. In this article, we will dive deep into the basics of LINQ.

LINQ stands for Language Integrated Query. LINQ is a data querying API that provides querying capabilities to .NET languages with a syntax similar to a SQL. LINQ queries use C# collections to return data.

LINQ introduces a standard, unified, easy-to-learn approach for querying and modifying data. In this article, you'll learn basics of LINQ and how to use LINQ in C#.

The differences between IEnumerable and IQueryable.

In this article, I will demonstrate how to use IEnumerable and IQueryable in C#. Also learn the differences between IEnumerable and IQueryable.

In this article, you will learn about awesome LINQ features in .Net 6.
Everything on LINQ, not only its articles: the LINQ page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article