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 1–200 · Page 1 of 4
- c# dynamic vs object: Choosing the Right Type
- C# Multicast Delegate: Syntax and Behavior
- Creating Custom Exceptions in C#
- C# Abstract Class: When and How to Use It
- C# Abstract Class Constructor: How It Works
- C# Abstract Class Inheritance Explained
- C# Abstract Class vs Interface: Choosing the Right Abstraction
- C# Abstract Method: Syntax, Overriding, and Design Tradeoffs
- C# Abstract Property: Declaration and Override
- C# Abstract vs Sealed: Choosing the Right Inheritance Modifier
- C# Abstract vs Virtual: Key Differences
- C# Access Modifier Scope: How Visibility Works
- C# Access Modifiers in Inheritance
- C# Access Modifiers: Syntax and Practical Usage
- C# Action Delegate Usage with Examples
- C# Action vs Func: Choosing the Right Delegate
- C# Activator.CreateInstance: Runtime Object Creation
- C# Alias Any Type with Using Directives
- C# && and || Operators Explained for Conditionals
- C# && vs & Operators: Key Differences
- C# Anonymous Method: Inline Delegate Logic Explained
- C# Anonymous Type: Syntax, Usage, and Limitations
- C# Anonymous Type with LINQ: Projection and Usage
- C# Anonymous Type Properties: Syntax and Behavior
- C# Anonymous Type vs Record: Practical Comparison
- C# Any() vs Count(): Which One Should You Use?
- C# Argument vs Parameter: What's the Difference?
- C# Arithmetic Operators: Syntax, Behavior, and Pitfalls
- C# Array Contains: Methods and Performance
- C# Array Copy Method: Choosing the Right Approach
- C# Array Copy: Methods, Performance, and Pitfalls
- C# Array Declaration: Syntax and Usage
- C# Array foreach: Syntax and Usage
- C# Array IndexOf: Find Element Positions
- C# Array Initialization: Syntax and Common Patterns
- C# Array Length: Property, Pitfalls, and Performance
- C# Array Loops: for vs foreach and More
- C# Array Reverse Method: Usage and Overloads
- C# Search Array: IndexOf, Find, and LINQ
- C# Array Slicing with Range
- C# Array Sort Method Explained with Examples
- C# Array Sorting: Array.Sort vs LINQ OrderBy
- C# Array to List: Conversion Methods and Performance
- C# Array vs List: Choosing the Right Collection Type
- Using ArraySegment in C# to Slice Arrays Without Copying
- C# as Operator Usage: Syntax, Behavior, and Practical Examples
- C# Async Await: Execution, Pitfalls, and Best Practices
- C# async/await and Task Relationship Explained
- Using C# Async Enumerable for Streaming Data
- C# Async Exception Handling: Patterns That Work
- C# Async Iterator: yield return and await foreach
- C# async lambda: Syntax, Behavior, and Pitfalls
- C# Async Method: How async and await Work
- Using C# async Task: Async/Await in Practice
- Handling Exceptions in C# Async Methods with try/catch
- c# async void: Exception Risks and Safe Patterns
- C# async void vs Task: Key Differences
- Using async yield return in C#
- C# Attribute Declaration Syntax and Usage
- C# Attributes: Syntax, Usage, and Runtime Behavior
- C# AttributeUsage: Controlling Custom Attribute Application
- C# Auto-Implemented Property: Syntax and Usage
- C# Auto Property: Syntax and Usage Explained
- Using C# await foreach with IAsyncEnumerable
- C# await Keyword: Async Method Behavior
- C# await using: Asynchronous Resource Disposal
- C# await vs Task.Result: Avoid Blocking Async Code
- C# Inheritance: How Base Classes and Derived Classes Work
- C# base constructor: Syntax and Usage
- Using the C# Base Keyword Correctly
- C# Base Member Access: Syntax, Usage, and Limits
- C# Base Type Reference to Derived Object
- C# Bitwise Operators: Syntax, Use Cases, and Pitfalls
- C# Bool Usage: Syntax, Operators, and Pitfalls
- C# Boxing Examples: How Value Types Behave
- C# Boxing Performance: Avoiding Hidden Allocations
- C# Boxing vs Unboxing: How They Affect Performance
- C# break statement: exit loops and switch cases
- C# break vs continue: When to Exit a Loop or Skip an Iteration
- C# Built-in Data Types: Selection Guide
- C# Integer Types: Choosing Between byte, short, int, and long
- Getting the Caller File Path in C#
- C# CallerLineNumber: Usage and Examples
- Using C# CallerMemberName to Avoid Hard-Coded Property Names
- C# CancellationToken: How to Cancel Operations Gracefully
- C# Casting: Safe and Explicit Type Conversion
- C# catch when: Using Exception Filters
- Converting a Char Array to a String in C#
- C# char vs string: When to Use Each Type
- C# Check Null or Empty String: Methods and Pitfalls
- C# Checked vs Unchecked: Controlling Integer Overflow
- C# Class Declaration: Syntax and Variations
- C# Class Inheritance: Syntax and Usage
- C# Class vs Struct vs Record: Choosing the Right Type
- C# Collection Expression: Syntax and Examples
- C# Collection Expressions for Array Initialization
- C# Collection Expression List Initialization
- C# Collection Expression Spread Element: Syntax and Behavior
- Using the C# Collection Expression Spread Operator
- C# Collection Expression vs Collection Initializer
- C# 12 Collection Expressions: Syntax, Spread Operator, and Performance
- C# Collection Initializer Syntax and Behavior
- C# Collection Initializer vs Object Initializer
- C# Comparable: Implementing IComparable for Sorting
- Creating Custom Comparers in C# for Sorting and Equality
- C# Comparison Operator Overloading
- C# Comparison Operators: Syntax and Behavior
- C# Compound Assignment Operators: Syntax and Behavior
- C# Concurrent Collections: Choosing the Right Thread-Safe Collection
- Using C# ConcurrentDictionary for Thread-Safe Collections
- Using C# ConcurrentQueue for Thread-Safe FIFO Work
- C# ConcurrentStack: Thread-Safe LIFO Collection
- C# Conditional Attribute: How It Works and When to Use It
- C# ConfigureAwait: When and Why to Use It
- C# const keyword usage: Compile-Time Constants
- C# const vs readonly: Key Differences and Usage
- C# const vs readonly vs static readonly: What to Use When
- Using the C# Constant Pattern in Switch Expressions
- C# Constructor Chaining Explained
- C# Constructor Chaining with 'this'
- C# Constructor Execution Order
- C# Constructor Overloading: Syntax and Usage
- C# Constructor Usage: Patterns and Pitfalls
- Using the C# Continue Statement in Loops
- C# Contravariance: How the in Keyword Works
- C# Convert Usage: Converting Between Base Types
- C# Convert vs Parse: When to Use Each
- C# Covariance vs Contravariance: How Generic Variance Works
- How to Use C# Custom Attribute Classes
- C# Custom EventArgs: Passing Data with Events
- C# Custom Exception Class: How to Build One
- Creating a C# Custom Iterator with yield
- C# Custom Sorting with Comparers and LINQ
- C# Deconstruct Method: Syntax and Use Cases
- C# Deconstruction: Syntax, Custom Types, and Pitfalls
- C# Default Constructor: How It Works and When to Use It
- C# Default Interface Method: Syntax and Compatibility
- C# Default Keyword: Syntax and Use Cases
- Using C# Default Parameters Safely
- C# Delegate Declaration Explained
- How to Invoke C# Delegates Safely
- Practical C# Delegate Usage
- C# Delegate vs Action vs Func: Which to Use?
- C# Delegate vs Event: The Practical Difference
- Understanding C# Destructors and Finalization
- C# Dictionary Add: Syntax, Exceptions, and Performance
- C# Dictionary Clear: Syntax, Behavior, and Performance
- Using C# Dictionary ContainsKey Effectively
- C# Dictionary ContainsValue: Usage and Performance
- C# Dictionary Declaration: Syntax and Initialization
- C# Dictionary Duplicate Key Handling
- C# Dictionary foreach: Iteration Patterns and Pitfalls
- C# Dictionary Get Value: Safe Lookup Patterns
- C# Dictionary GetValueOrDefault: Usage and Behavior
- C# Dictionary Initialization: Syntax and Tradeoffs
- C# Dictionary Key-Value Iteration: Methods and Pitfalls
- Removing Entries from a C# Dictionary
- Using C# Dictionary TryGetValue for Safe Lookups
- C# Dictionary Update Value: Indexer vs TryGetValue
- C# Dictionary Usage: Key Operations and Performance
- C# Dictionary vs List: Choosing the Right Collection
- C# Dictionary vs SortedDictionary: Which to Use?
- C# Discard Lambda Parameter: When and How to Use It
- Using the C# Discard Operator Effectively
- C# Discard Pattern: Syntax and Practical Use Cases
- C# Discard Underscore: Syntax and Practical Usage
- Implementing the C# Dispose Method Correctly
- Implementing the C# Dispose Pattern
- C# Dispose vs Destructor: Key Differences Explained
- C# Dispose vs Finalizer: When to Use Each
- C# Do While Loop: Syntax and Usage
- C# Double to Int Conversion: Casting and Rounding
- Using the C# Dynamic Keyword Safely
- C# Dynamic Method Invocation at Runtime
- C# Dynamic Runtime Binding Explained with Examples
- C# Dynamic vs Var: Type Safety and Runtime Behavior
- C# else if Statement: Syntax, Behavior, and Usage
- C# Encapsulation: Hiding State Behind Clear Boundaries
- C# Enum Custom Values: How to Define and Use Them
- C# Enum Declaration: Syntax, Types, and Pitfalls
- C# Enum Default Value: What default(MyEnum) Returns
- C# Enum Parse: Converting Strings to Enum Values
- C# Enum Switch: Patterns and Pitfalls
- C# enum to int: Cast, Convert, and Underlying Types
- Formatting C# Enum ToString with Ease
- C# Enum TryParse: Safe String-to-Enum Parsing
- C# Enum Usage: Practical Patterns and Pitfalls
- C# Equality Comparer: Implementing IEqualityComparer<T>
- C# == vs Equals: How They Differ and When to Use Each
- C# Equality Comparison: Value vs. Reference Types
- C# Equals vs ==: How They Differ and When to Use Each
- C# Event Declaration: Syntax, Behavior, and Pitfalls
- C# Event Null Check: Safe Invocation Patterns
- C# Event Subscription: Syntax, Pitfalls, and Clean Unsubscription
- How to Unsubscribe from C# Events: Syntax and Memory Leak Prevention
- C# Event Usage: Declaring, Raising, and Handling Events
- C# Event vs Delegate: Key Differences
- Using c# eventargs for Custom Event Data
- C# EventHandler: Events, Subscriptions, and Pitfalls
- Using C# Exception Filters to Control Error Handling