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 35 of 77C# Lambda Closure: Variable Capture Explained
Learn how C# lambda closures capture variables, why captured state lives as long as the delegate, and how to avoid common pitfalls like loop variable capture.
C# Lambda vs Delegate: When to Use Each
c# lambda vs delegate: Understand the practical differences between C# lambda expressions and delegates, including syntax, variable capture, and allocation behavior, t...
C# Statement Lambda: Syntax and Practical Usage
Learn C# statement lambdas, their syntax, how they differ from expression lambdas, and when to use them in delegates, LINQ, and async code.
C# Expression Lambda: Syntax and Practical Usage
c# expression lambda: Learn C# expression lambda syntax, how it differs from statement lambdas, and where it fits in LINQ, delegates, and expression trees.
C# Lambda Return Value: Syntax and Behavior
Learn how C# lambdas produce return values: expression vs. statement lambdas, return-type inference with Func delegates, and common pitfalls to avoid.
C# Lambda Parameters: Syntax, Types, and Common Pitfalls
Learn how to define and use C# lambda parameters: syntax, explicit and implicit types, ref/out/in modifiers, and common pitfalls to avoid.
C# Lambda Syntax: Expressions, Statements, and Captures
c# lambda syntax: Learn the practical C# lambda syntax: expression and statement lambdas, parameter inference, variable capture, and common pitfalls.
C# Lambda Expression: Syntax, Variable Capture, and Performance
Understand C# lambda expression syntax, variable capture, delegate usage, and performance tradeoffs with practical code examples.
C# Anonymous Method: Inline Delegate Logic Explained
Learn how to use anonymous methods in C# for inline delegate logic, including syntax, variable capture, and when lambdas are a better choice.
C# Generic Delegate: Syntax and Practical Usage
c# generic delegate: Learn how to declare and use generic delegates in C#, including Func, Action, and custom delegate types with compile-time type safety.