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 601–758 · Page 4 of 4
- Using C# SemaphoreSlim to Limit Concurrent Access
- C# SetsRequiredMembers: Constructor Initialization
- C# Shallow Copy vs Deep Copy
- C# Shift Operators: Syntax and Behavior
- C# || vs |: Short-Circuiting and Bitwise OR
- C# Single vs First: Key Differences and Usage
- C# sizeof Keyword: Compile-Time and Runtime Behavior
- C# SortedDictionary Usage: Ordering and Performance
- C# SortedList Usage: Sorting Key-Value Pairs Efficiently
- C# SortedSet Usage: Ordered Set in .NET
- Slicing Spans in C#
- Using C# Span with Stackalloc for Zero-Allocation Buffers
- C# Span Usage: Process Memory Slices Without Allocations
- C# Span vs Array: Choosing the Right Type
- C# Span vs Memory: Choosing the Right Type
- C# Span vs String: When to Use Each for Performance
- Using C# Span with Arrays for Zero-Allocation Slicing
- C# Stack Peek: Inspect the Top Element Without Removing It
- C# Stack Push and Pop: Practical Usage
- C# Stack.TryPeek: Safe Peek Without Exceptions
- Using Stack<T>.TryPop in C#
- C# Stack Usage: Allocation, Performance, and Limits
- C# Stack vs Heap: Memory Allocation Explained
- C# Stack vs Queue: Choosing the Right Collection
- Using C# stackalloc for High-Performance Buffers
- C# Statement Lambda: Syntax and Practical Usage
- C# Static Class: Usage, Limitations, and Tradeoffs
- C# Static Constructor: Syntax and Runtime Behavior
- C# Static Keyword: Class-Level Members Explained
- C# Static Lambda: Syntax, Benefits, and Usage
- C# Static Local Function: Syntax and Benefits
- C# Static Member Access: Syntax and Common Pitfalls
- C# Static Members Explained with Practical Examples
- C# Static Method: Syntax, Behavior, and Tradeoffs
- C# Static Readonly Usage: Syntax and Tradeoffs
- C# Static Variable: Lifetime and Thread Safety
- C# static vs instance: Key Differences
- C# String Comparison: Ordinal vs Culture
- C# String Concatenation: Choosing the Right Approach
- C# String Contains: Usage, Case-Insensitive Checks, and Performance
- C# String Equals: Choosing the Right Comparison
- C# String Equals vs ==: What’s the Difference?
- C# String Format: Composite Formatting and Specifiers
- C# String Interpolation Formatting: Syntax and Specifiers
- C# String Interpolation: Syntax, Performance, and Edge Cases
- C# String Join: Syntax, Overloads, and Practical Usage
- C# String Length: Property, Pitfalls, and Performance
- C# String Replace: Syntax, Overloads, and Performance
- C# String Slicing with Range
- C# String Split: Overloads, Options, and Pitfalls
- C# String StartsWith and EndsWith Usage
- C# String to Char Array: Using ToCharArray
- C# String to Enum: Parsing and Validation
- C# String to Int Conversion: Parse vs TryParse vs Convert
- C# String Usage: Methods, Immutability, and Performance
- C# String vs StringBuilder: When to Use Each
- Using StringBuilder.Append in C# Without Wasteful Allocations
- C# StringBuilder Insert and Remove
- C# StringBuilder: When and How to Use It
- C# StringComparison: Choosing the Right Comparison Mode
- C# Struct Constructor: Rules and C# 10 Changes
- C# Struct Copy Behavior: Value Type Semantics Explained
- C# Struct Declaration: Syntax, Semantics, and Performance
- C# Struct Usage: Value Types and When to Use Them
- Understanding C# Struct Value Type Behavior
- C# Struct vs Class: Choosing the Right Type
- C# Substring: Syntax, Errors, and Alternatives
- C# Switch Case: Syntax, Patterns, and Pitfalls
- C# Switch Default: When No Case Matches
- Returning Values from a C# Switch Expression
- C# Switch Expression: Syntax and Practical Usage
- C# Switch Pattern Matching: Syntax and Use Cases
- C# Switch Statement: Syntax, Patterns, and Pitfalls
- C# Switch Statement vs Switch Expression: Which to Use?
- Using the when Clause in C# Switch Statements for Pattern Matching
- Understanding C# Task and Async Programming
- C# Task Cancellation: Using CancellationToken Correctly
- C# Task.Delay: Async Timing Without Blocking Threads
- C# Task<T>: Returning Values from Async Methods
- C# Task Result: How to Access Values from Async Methods
- C# Task Return Value: Using Task<TResult>
- C# Task vs ValueTask: Choosing the Right Async Return Type
- C# Task.WhenAll: Awaiting Multiple Tasks
- C# Task.WhenAny: Handling the First Completed Task
- C# Ternary Operator: Syntax, Usage, and Pitfalls
- C# Indexers: Syntax, Usage, and Tradeoffs
- C# This Keyword: Usage and Common Pitfalls
- C# this Member Access: Syntax and Use Cases
- C# Thread-Safe Locking: Choosing the Right Synchronization
- Using ThreadLocal<T> in C# for Per-Thread State
- C# Throw Exception: Syntax and Correct Usage
- C# Throw Keyword: Syntax, Rethrowing, and Filters
- C# throw vs throw ex: Stack Trace Differences Explained
- C# ToUpper and ToLower: String Case Conversion
- C# Trim: Removing Whitespace and Characters
- C# TrimStart vs TrimEnd: When to Use Each
- C# try catch: Syntax, Usage, and Pitfalls
- C# Try Catch Finally: How the Blocks Actually Behave
- C# TryParse Usage: Parsing Strings Without Exceptions
- C# Tuple Declaration: Syntax and Usage
- C# Tuple Deconstruction: Syntax and Practical Use
- C# Tuple Multiple Return Values: Syntax and Usage
- C# Tuple Return: Syntax and Usage
- C# Tuple Usage: Syntax, Deconstruction, and Tradeoffs
- C# Tuple vs Class: Choosing the Right Data Carrier
- C# Tuple vs Record: When to Use Each
- C# Tuple vs ValueTuple: Which One Should You Use?
- C# Two-Dimensional Array: Syntax, Usage, and Performance
- C# Type Class: Emulating with Interfaces
- C# Type Conversion: Implicit, Explicit, and Safe Casting
- C# Type Pattern: Syntax and Usage
- C# typeof Keyword: Syntax, Usage, and Runtime Behavior
- C# typeof vs GetType: Compile-Time vs Runtime Type Resolution
- C# User Defined Conversion Operator Explained
- C# Using Alias: Syntax, Scope, and Pitfalls
- C# Using Alias for Generic Types
- C# Using Alias for Tuple Types
- C# Using Declaration: Syntax, Scope, and Disposal
- C# Using Directive: Syntax, Forms, and Scope
- C# Using Statement: Dispose Resources Reliably
- C# Using Statement vs Using Declaration
- Using Static in C# to Simplify Member Access
- C# using vs Dispose: When to Use Each
- C# Value Type vs Reference Type: Key Differences
- C# ValueTask: When and How to Use It
- C# var Keyword Usage: Type Inference Explained
- C# var Pattern: Syntax, Use Cases, and Pitfalls
- C# var Type Inference: When to Use It and When to Avoid
- C# var vs dynamic: What's the Difference?
- c# var vs object: Static Type vs Base Type
- C# Variable Declaration: Syntax and Practical Usage
- C# Variable Declaration vs Initialization
- C# Variable Initialization: Rules and Defaults
- C# Verbatim String: How to Use @ in C#
- c# virtual keyword: How Overridable Members Work
- C# Virtual Method Dispatch Explained
- C# Virtual vs Abstract: When to Use Each
- C# virtual vs override: What Each Modifier Does
- C# Void Method: Syntax, Usage, and Common Pitfalls
- C# volatile: Semantics and Practical Use
- C# where T : class — Reference Type Constraints in Generics
- C# where T: Generic Type Constraints Explained
- C# where T : new() Constraint: Syntax and Usage
- C# where T notnull: Generic Constraint Explained
- C# where T : struct: Generic Value Type Constraints
- C# where T : unmanaged: Generic Unmanaged Types
- C# Where vs Find: Choosing the Right Approach
- C# While Loop: Syntax, Behavior, and Pitfalls
- C# While vs Do While: When to Use Each
- C# XOR Operator: Bitwise and Logical Usage
- C# Yield Break: How to End Iterator Methods
- C# yield return: Lazy Iteration Explained
- Demystifying C# Unboxing
- Understanding C# Class Members
- Understanding C# Covariance in Generics and Interfaces
- Understanding IEnumerator in C#
- Using C# Partial Classes in Real Projects
- Working with LinkedListNode in C#