Browse by Topic

Popular

Latest

Latest Posts

Diagram of an async method state machine showing await points and thread yield to the thread pool.
C#

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.

async/awaitTask-based Asynchronous PatternC# ConcurrencyCancellationToken
Diagram showing object initialization with indexer assignment in C#.
C#

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#Index InitializerObject InitializerIndexer
Diagram showing nested object initializer syntax in C# with braces and property assignments.
C#

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#Object InitializerNested ObjectsCollection Initializer
Illustration comparing C# anonymous type and record data structures with a balance scale and code blocks.
C#

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 typesrecordsdata modeling
Illustration of C# anonymous type properties showing a compiler-generated type with read-only properties.
C#

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 TypesLINQType System
Diagram showing a LINQ query projecting data into an anonymous type with inferred properties.
C#

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.

anonymous typesLINQC# programmingtype inference
Illustration of C# anonymous type concept with a projection from a collection to an anonymous object.
C#

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.

anonymous typesC#LINQtype inference
Editorial illustration of C# dynamic runtime binding showing a runtime binder routing a method call to a resolved object at execution time.
C#

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.

dynamic keywordDLRruntime bindingC# reflection
Illustration of a C# method being invoked dynamically at runtime with reflection and dynamic binding.
C#

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.

ReflectionDynamic KeywordDelegatesPerformance
Illustration comparing compile-time type inference with runtime dynamic binding in C#.
C#

C# Dynamic vs Var: Type Safety and Runtime Behavior

C# dynamic vs var: Understand the real differences between compile-time type inference and runtime binding, including performance costs, error handling, and when to choose each.

C#dynamic keywordtype inferencestatic typing