C# guides
Every C# article in the library in slug order, with the full list on one page so nothing is buried behind pagination.
758 guides · Showing 201–400 · Page 2 of 4
- C# Exception Handling: Patterns for Robust Code
- Reading and Preserving C# Exception Stack Traces
- C# Exit Loop: Using break, return, and goto
- C# Explicit Conversion: Syntax and Use Cases
- C# Explicit Interface Implementation: When and How to Use It
- C# Explicit Operator: Defining Custom Type Conversions
- C# Expression-Bodied Method: Syntax and Usage
- C# Expression-Bodied Property: Syntax and Usage
- Compiling C# Expression Trees into Executable Delegates
- C# Expression Lambda: Syntax and Practical Usage
- C# Expression Tree Internals: How Code Becomes Data
- C# Expression Trees: Building Dynamic Queries
- C# Expression vs Func: When to Use Each
- C# Extension Method Declaration: Syntax, Rules, and Use
- C# Extension Method Resolution
- C# Extension Method Syntax and Use Cases
- C# Extension Method this Parameter Explained
- C# Extension Method vs Static Method: Key Differences
- C# Field Usage: Declaration, Initialization, and Access
- C# Field vs Property: When to Use Each
- C# File Access Modifier: Syntax and Use Cases
- C# File Class: Static File Operations Explained
- C# File Local Type: Scoped Type Declarations
- C# File-Scoped Namespaces Explained
- C# Finalizer: How It Works and When to Use It
- C# Finally Block: Execution Guarantees and Usage
- C# First vs FirstOrDefault: Key Differences
- C# First vs Single: Choosing the Right LINQ Method
- Using Flags Enums in C#
- C# Float vs Double vs Decimal: Key Differences
- C# for Loop: Syntax, Usage, and Performance
- C# for vs foreach: Choosing the Right Loop
- C# foreach Loop: Syntax, Behavior, and Performance
- C# foreach with index: getting the current iteration index
- C# Full Property: Syntax and When to Use It
- C# Func Delegate: Syntax, Usage, and Practical Examples
- C# GC.SuppressFinalize: When and Why to Call It
- C# Generic Class: Type-Safe Reusable Code
- C# Generic Constraints: Syntax, Use Cases, and Pitfalls
- C# Generic Contravariance: How It Works
- C# Generic Covariance: How It Works and Where to Use It
- C# Generic Delegate: Syntax and Practical Usage
- C# Generic Extension Method Implementation Guide
- C# Generic In Parameter: Syntax and Constraints
- C# Generic In vs Out: Covariance and Contravariance
- C# Generic Interface: Definition, Usage, and Patterns
- C# Generic Method: Syntax, Constraints, and Behavior
- C# Generic Out Parameter: Type Inference Explained
- C# Generic Queue: FIFO Operations and Performance
- Using the C# Generic Stack<T> Effectively
- C# Generic Type Parameter: Syntax, Constraints, and Runtime Behavior
- C# Generic Variance: Covariance & Contravariance
- C# Generic vs Non-Generic: Type Safety and Performance
- C# Generics: Type Safety Without Duplication
- C# Get Only Property: Syntax and Usage
- C# Get Set: Property Accessors Explained
- C# GetHashCode: Contract and Correct Overrides
- C# Getter Setter: Properties and Accessors
- C# Global Using Explained
- C# HashSet Add: Behavior, Performance, and Common Pitfalls
- C# HashSet.Contains: Fast Lookup and Usage
- C# HashSet Equality Comparer: Custom Equality
- C# HashSet ExceptWith: Remove Elements In Place
- C# HashSet IntersectWith: In-Place Set Intersection
- C# HashSet<T>.Remove: Syntax, Return Value, and Performance
- Using C# HashSet to Remove Duplicates
- C# HashSet UnionWith: In-Place Set Union Explained
- C# HashSet Usage: Efficient Set Operations
- C# HashSet vs SortedSet: Choosing the Right Collection
- C# Hat Operator: Using Index from the End
- C# IAsyncDisposable for Async Resource Cleanup
- Using C# IAsyncEnumerable for Async Streams
- Implementing IComparable in C# for Reliable Sorting
- C# IComparable vs IComparer: When to Use Each
- C# IComparer: Custom Sorting with IComparer<T>
- C# IDisposable: The Dispose Pattern Explained
- C# IEnumerable: How It Works and When to Use It
- IEnumerable vs IEnumerator in C#: Key Differences
- C# IEnumerable vs IQueryable: Key Differences
- Implementing IEquatable<T> in C# for Efficient Equality Checks
- C# if else Statement: Syntax, Usage, and Common Mistakes
- C# If Statement: Syntax and Real-World Usage
- C# if vs switch: Choosing the Right Branching Construct
- C# Implicit Conversion: How It Works and When to Use It
- Using C# Implicit Operators to Convert Types Cleanly
- C# in Parameter: Read-Only References for Structs
- C# in vs ref vs out: Parameter Passing Explained
- C# Increment and Decrement Operators: Prefix vs Postfix
- C# Index from End: Using the ^ Operator
- C# Index Initializer: Syntax and Usage
- C# Index Operator: Using ^ and ^.. Syntax
- C# Indexer get and set: Syntax and Usage
- C# Indexer: Syntax, Usage, and Performance
- Using C# IndexOf Effectively
- C# Infinite Loop: Causes, Detection, and Prevention
- Understanding C# Inheritance
- C# Inheritance Constructor Order
- C# Init Keyword: Immutable Properties After Construction
- C# Init Property: Immutable Object Initialization
- C# init vs set: Choosing the Right Property Accessor
- Using InnerException in C# to Preserve the Original Error
- C# Instance Members Explained
- C# int to double conversion: implicit conversion, casting, and Convert.ToDouble
- C# Int to Enum: Casting and Validation
- C# Int to String Conversion: Methods and Pitfalls
- C# Integer Types Comparison: Choose the Right Type
- Implementing C# Interceptors with a Minimal Example
- C# InterceptsLocation Attribute Usage
- C# Interface Declaration: Syntax and Usage
- C# Interface Implementation: Syntax and Patterns
- C# Interface Inheritance: Syntax and Usage
- C# Interface Method: Declaration and Implementation
- C# Interface Polymorphism Explained with Code Examples
- C# Interface Property: Syntax and Implementation
- C# Interface Usage: Contracts, Polymorphism, and DI
- C# Interlocked: Atomic Operations Without Locks
- C# Internal Keyword: Scope and Assembly Boundaries
- C# Interpolated String Syntax and Usage
- C# is not null: Pattern Matching for Null Checks
- C# is null: Pattern Matching for Null Checks
- C# is Operator Usage: Type Checking and Pattern Matching
- C# Is Pattern Matching: Syntax and Use
- C# is vs as: Type Checking and Safe Casting
- C# IsNullOrEmpty: Check for Null or Empty Strings
- C# IsNullOrWhiteSpace: Syntax, Behavior, and Use Cases
- C# Iterator Deferred Execution
- C# Iterator: How yield return Works
- C# Jagged Array: Syntax, Usage, and Performance
- C# Lambda Closure: Variable Capture Explained
- C# Lambda Default Parameters: Syntax and Limits
- C# Lambda Explicit Return Type
- C# Lambda Expression: Syntax, Variable Capture, and Performance
- C# Lambda Parameters: Syntax, Types, and Common Pitfalls
- C# Lambda Params: Syntax and Common Pitfalls
- C# Lambda Ref Parameter: Why It's Not Allowed
- C# Lambda Return Value: Syntax and Behavior
- C# Lambda Syntax: Expressions, Statements, and Captures
- C# Lambda Variable Capture: Closures and Pitfalls
- C# Lambda vs Delegate: When to Use Each
- Find the Last Occurrence with C# LastIndexOf
- C# LinkedList AddFirst and AddLast: Usage and Performance
- C# LinkedList Remove: Delete Nodes Efficiently
- C# LinkedList Usage: When and How to Use LinkedList<T>
- How to Use LINQ Aggregate in C#
- Using C# LINQ All to Validate Collections
- C# LINQ Any: Usage and Behavior
- C# LINQ Append and Prepend: Adding Elements to Sequences
- C# LINQ Average: Syntax and Edge Cases
- C# LINQ Chunk: Split Sequences into Batches
- C# LINQ Concat: Syntax and Use Cases
- C# LINQ Contains: Usage, Performance, and Pitfalls
- C# LINQ Count: Syntax, Predicates, and Performance
- Understanding C# LINQ Deferred Execution
- Using C# LINQ Distinct Effectively
- How to Use LINQ DistinctBy in C#
- C# LINQ ElementAt: Usage, Performance, and Alternatives
- Using LINQ Except in C# to Find Set Differences
- C# LINQ First: Syntax, Behavior, and Pitfalls
- C# LINQ FirstOrDefault: Syntax and Defaults
- C# LINQ GroupBy: Grouping Data Correctly
- C# LINQ GroupJoin Syntax and Use Cases
- C# LINQ Immediate Execution: When and How to Force It
- C# LINQ Intersect: Set Intersection in Practice
- Understanding C# LINQ Join with Examples
- C# LINQ Last: Syntax, Edge Cases, and Performance
- C# LINQ LongCount: When to Use It
- Using Lookup in C# LINQ for One-to-Many Maps
- C# LINQ Method Syntax Explained with Examples
- Using Min and Max in C# LINQ
- C# LINQ Multiple Where Conditions: Chaining vs &&
- C# LINQ Null Handling: Avoiding NullReferenceException in Queries
- C# LINQ OrderBy: Syntax, Examples, and Sorting Behavior
- C# LINQ OrderByDescending: Sorting in Descending Order
- C# LINQ Query Syntax: A Practical Guide
- C# LINQ Query Syntax vs Method Syntax
- C# LINQ Reverse: Reversing Sequences
- C# LINQ Select: Syntax, Examples, and Pitfalls
- C# LINQ SelectMany: Flattening Nested Collections
- C# LINQ SequenceEqual: Compare Sequences Correctly
- C# LINQ Single: Usage, Exceptions, and When to Use It
- Using SingleOrDefault in C# LINQ
- C# LINQ Skip: Usage, Behavior, and Edge Cases
- C# LINQ SkipWhile: Syntax and Behavior
- C# LINQ Sum: Syntax, Edge Cases, and Performance
- C# LINQ Take: Syntax, Behavior, and Use Cases
- C# LINQ TakeWhile: Stop at First Failure
- C# LINQ ThenBy: Sorting by Multiple Keys
- C# LINQ ToArray: Usage and Performance
- C# LINQ ToDictionary: Syntax, Edge Cases, and Performance
- C# LINQ ToHashSet: Convert Query Results to a HashSet
- C# LINQ ToList: Materialization and Practical Use
- C# LINQ Union: Merging Sequences Without Duplicates
- C# LINQ Usage: Practical Patterns and Performance
- How to Use Where in C# LINQ
- C# List Add: How to Add Elements to a List
- C# List AddRange: Syntax, Behavior, and Performance
- C# List Clear: How to Empty a List in C#
- C# List Contains: Checking for Elements in a List
- C# List Count: Count Property vs Count() Method
- C# List Count vs Capacity: Key Differences