Revision
Cheat sheets
C# Language cheat sheets
54 resultsClear filters
- ArticleFull Access
C# Code as Data: Expression Trees, IQueryable and Async/Await
Expression trees and LINQ as code as data, IEnumerable versus IQueryable and deferred execution, plus generics, events and async/await step by step.
C# Language
- ArticleFull Access
Advanced C# Engineering: Reliability, Performance, and Design
A 23-section .NET 10 and C# 14 guide to logging, async, performance, domain modelling, data access, testing, and production-safe trade-offs.
C# Language
- ArticleFull Access
Object-Oriented Programming in C# and .NET: Pillars to Patterns
The four pillars, advanced OOP building blocks and how design patterns look in modern .NET, with a language-version baseline.
C# Language
- ArticleFull Access
100 LINQ Examples from Basic to Advanced
100 LINQ examples with defined C# fixtures, expected outputs, execution and performance contracts, and clearly separated EF Core and Rx integration examples.
C# Language
- ArticleFull Access
C# Interview Q&A with Code Examples
Precise interview answers with runnable C# code, covering memory and GC, value and reference types, records, Span<T> and equality.
C# Language
- ArticleFull Access
C# Interview Questions with Answers, Analogies and Code
66 questions across 13 sections, from delegates, events and closures onward, each with an answer, an analogy and code.
C# Language
- ArticleFull Access
38 Hidden and Underused C# Features
Every feature here is genuinely useful in day-to-day code.
C# Language
- ArticleFull Access
From Delegates to LINQ Query Providers in C#
Delegates, events, lambdas, the Expression API and expression trees, and how LINQ query providers translate them.
C# Language
- ArticleFull Access
C# Delegates, Lambdas, Events and Expression Trees
A deep reference on delegates, lambdas, callbacks, events and expression trees, including closure internals and event-leak forensics.
C# Language
- ArticleFull Access
C# Code Quality: Common Pitfalls and Best Practices
Ten C# code-review topics (naming, method design, exception handling, LINQ, async/await, dependency injection, immutability, null handling, interface design and performance), each with good and bad practice, the reasoning, a code example and a scenario check.
C# Language
- ArticleFull Access
How Computers Work: From Bits to .NET Programs
At the lowest level a computer is nothing more than a collection of switches. Each switch can be on or off.
C# Language
- NoteFree
Equality and Hash-Code Contracts for Immutable C# Value Keys
Learn how equality and hash-code contracts work in C#, why equal objects must share a hash code, why collisions are allowed, and how to implement an immutable value type safely as a dictionary key.
C# Language
- PDFFree
C# Safe Parsing Companion
A five-page companion to the safe parsing lesson, with three standalone .NET 10 programs (ValueBasics.cs, ExactDate.cs and DateAmount.cs), observed results, and a complete command-line solution.
5 pages · 72 KB · C# Language
- PDFFree
C# HashSet Equality: Four Backend Decision Exercises
A two-page interview workbook with four original backend scenarios and explained answers: comparer policy, display order, event history and identity boundaries.
2 pages · 5 KB · C# Language
- ArticleFull Access
Common C# Patterns and Everyday Best Practices
Everyday C# patterns and their pitfalls: TryParse for numbers and enums, avoiding unnecessary boxing, choosing double or decimal, TryGetValue instead of ContainsKey plus the indexer, ordinal string comparison with StringComparison and StringComparer, and overriding Equals together with GetHashCode.
C# Language
- ArticleFull Access
C# Code Review Cheat Sheet: Bad vs Good Code
Common C# mistakes, each with the better habit and why it matters: async, exceptions, culture, LINQ, null safety, locking, DI lifetimes and time.
C# Language
- PDFFree
C# Data Shapes and Patterns Companion
A seven-page companion to Enums, Tuples, Records, and Property Patterns, with four .NET 10 programs, output traces, and the solved order-state exercise.
7 pages · 73 KB · C# Language
- PDFFree
C# Value Types and Nullable Boundaries Companion
A seven-page companion to Value Types, Reference Types, and Nullability Without Myths, with four .NET 10 programs, output traces, and a solved delivery-address boundary exercise.
7 pages · 76 KB · C# Language
- PDFFree
C# Delegates, Lambdas and Events Companion
A six-page companion to Delegates, Lambdas, and Events with Explicit Ownership, with three .NET 10 programs, output traces, and solved practice on deferred execution, capture and event lifetimes.
6 pages · 73 KB · C# Language
- PDFFree
C# Branching and Loops Companion
A seven-page companion to Branching and Loops That Make Invariants Obvious, with three .NET 10 programs, output traces, and bounded retry, cancellation and failure exercises.
7 pages · 76 KB · C# Language