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 12 of 77C# Task Return Value: Using Task<TResult>
c# task return value: Learn how to return values from C# tasks using Task<TResult>, including declaration, creation, awaiting, exception handling, and performance trad...
C# Task<T>: Returning Values from Async Methods
Learn how Task<T> works in C#, how to return values from async methods, and when to use it instead of plain Task.
Understanding C# Task and Async Programming
Learn how C# Task works, how to create and await tasks, handle errors and cancellation, and choose between Task and ValueTask for performance.
C# await Keyword: Async Method Behavior
Understand how the C# await keyword suspends async methods, returns control to callers, and handles exceptions in async programming.
C# Async Method: How async and await Work
Learn how async and await work in C#: return types, exception handling, cancellation, performance tradeoffs, and common pitfalls.
C# Async Await: Execution, Pitfalls, and Best Practices
Understand how C# async and await work under the hood, write correct async methods, and avoid deadlocks and performance traps.
C# Index Initializer: Syntax and Usage
c# index initializer: Learn how to use index initializers in C# to set indexer values during object creation, with syntax examples and practical usage patterns.
C# Nested Object Initializer Syntax and Behavior
Learn how C# nested object initializers work, including the assignment and nested-member forms, collection initialization, common mistakes, and tradeoffs.
C# Anonymous Type vs Record: Practical Comparison
Compare C# anonymous types and records on syntax, equality, immutability, and when to choose each for data modeling.
C# Anonymous Type Properties: Syntax and Behavior
C# anonymous type properties: Learn how to declare them, their read-only behavior, equality semantics, LINQ usage, and practical limitations.