All syntax guides
Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.
3,980 guides across 14 topics
Topics
Popular guides
Most readLatest guides
Page 331 of 398C# 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.
C# Anonymous Type with LINQ: Projection and Usage
Learn how C# anonymous types work with LINQ for projections, grouping, joins, and composite keys, and when a named DTO is the better choice.
C# Anonymous Type: Syntax, Usage, and Limitations
c# anonymous type: Learn how to use C# anonymous types for read-only data projections, their syntax, runtime behavior, and when to prefer tuples or records.
C# Dynamic Runtime Binding Explained with Examples
C# dynamic runtime binding defers member resolution until runtime. Understand how the dynamic keyword works with the DLR, when RuntimeBinderException appears, and the performance trade-offs to expect.
C# Dynamic Method Invocation at Runtime
Learn how to call C# methods by name at runtime using reflection, the dynamic keyword, and cached delegates, with practical performance and maintainability tradeoffs.