C# guides
Every published C# guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular C# guides
Most readLatest C# guides
Page 3 of 77C# Any() vs Count(): Which One Should You Use?
Choosing between Any() and Count() in C# depends on whether you need an existence check or an exact count. See performance and edge-case guidance.
C# First vs Single: Choosing the Right LINQ Method
Understand the difference between First and Single in C# LINQ, including exception behavior, performance tradeoffs, and practical guidance for choosing the right method.
C# IEnumerable vs IQueryable: Key Differences
Understand the practical differences between IEnumerable and IQueryable in C#: how they execute, when to use each, and how the choice affects performance and memory.
C# Tuple vs Record: When to Use Each
c# tuple vs record: Compare C# tuples and records for data modeling: syntax, equality, mutability, and when each type fits best.
C# Generic vs Non-Generic: Type Safety and Performance
Compare generic and non-generic types in C#, including type safety, boxing overhead, code clarity, and when to choose each approach.
C# Nullable Operators: Syntax and Usage
Learn how C# nullable operators ?., ??, and ??= simplify null handling, help prevent NullReferenceException, and make code more readable.
C# Parse vs TryParse vs Convert
Compare C# Parse, TryParse, and Convert for string-to-number conversion, including exception behavior, null handling, and practical use cases.
C# override vs new: Choosing the Right Method Behavior
Understand the practical difference between override and new in C#: how each affects polymorphism, virtual dispatch, and when to use it.
C# Virtual vs Abstract: When to Use Each
Understand the difference between virtual and abstract members in C#, when to use each, and how they affect inheritance and polymorphism.
C# Method vs Function: What Actually Differs
c# method vs function: Understand the real difference between methods and functions in C#, including local functions, static methods, delegates, and when the distincti...