Revision
Cheat sheets
C# Language cheat sheets
55 resultsClear filters
- ArticleFree
Loop-Variable Capture Pitfalls in C# Lambdas and Callbacks
Predict what delayed callbacks capture inside a loop.
C# Language
- ArticleFull Access
From Delegates to LINQ Query Providers in C#
Connect delegates, events and lambda capture.
C# Language
- ArticleFree
Generic Constraints in C#: Design Contracts for Type Parameters
Read common generic constraints and the capabilities they allow.
C# Language
- PDFFree
C# Value Types and Nullable Boundaries Companion
Compare value types, reference types and nullable boundaries.
7 pages · 76 KB · C# Language
- ArticleFull Access
C# Interview Q&A with Code Examples
Review C# interview answers with illustrative code.
C# Language
- ArticleFree
Working with bool, char, and string in Everyday C#
Choose bool, char and string for the data.
C# Language
- ArticleFree
Materialization with ToList: Snapshotting LINQ Results
See when ToList executes a deferred query.
C# Language
- PDFFree
C# First Program, Build and Run Companion
Build and run a C# invoice calculator.
17 pages · 97 KB · C# Language
- NoteFree
Source generators at a glance
Understand when source generators run and what they produce.
C# Language
- ArticleFull Access
Object-Oriented Programming in C# and .NET: Pillars to Patterns
Apply encapsulation, abstraction, inheritance and polymorphism.
C# Language
- ArticleFree
C# Records, Value Equality, and with-Expressions for Interviews
Compare record classes, record structs and ordinary types.
C# Language
- PDFFree
C# Compiler Diagnostics and Build Confidence Companion
Diagnose syntax, type and nullable-reference problems.
16 pages · 96 KB · C# Language
- ArticleFull Access
C# OOP as Type Design: Types, Members and Relationships
Choose classes, structs, records and interfaces for the model.
C# Language
- PDFFree
C# Delegates, Lambdas and Events Companion
Trace delegates, lambdas and event behavior.
6 pages · 75 KB · C# Language
- PDFFree
C# Encapsulation and State Transitions Companion
Protect valid state transitions through encapsulation.
11 pages · 83 KB · C# Language