Revision
Cheat sheets
Articles
31 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
- 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
- ArticleFree
Deferred Execution and Repeated Enumeration in LINQ to Objects
Learn when a LINQ to Objects query actually runs, why enumerating the same query twice repeats work, and how that differs from database query translation and execution.
C# Language
- ArticleFree
Working with bool, char, and string in Everyday C#
Learn how C# boolean, character, and string types behave in real code, including comparisons, text handling, and common pitfalls that matter in production.
C# Language
- ArticleFree
Generic Types and Generic Methods in C#
Learn how C# generics let you reuse algorithms and data structures without giving up compile-time type safety or resorting to casts.
C# Language
- ArticleFree
Choosing Between StringBuilder and String Concatenation in C#
Learn when plain concatenation, interpolation, or StringBuilder is the right tool for building text in C# based on workload, readability, and allocation behavior.
C# Language
- ArticleFree
Loop-Variable Capture Pitfalls in C# Lambdas and Callbacks
Learn why callbacks inside loops can all observe the same changing variable, how C# fixed foreach capture semantics, and how to write safe per-iteration closures in modern code.
C# Language
- ArticleFree
String Immutability in C#: Allocations, Sharing and Surprises
Learn why C# strings never change in place, how assignment shares references, and when string operations allocate a new result or reuse an existing instance.
C# Language
- ArticleFree
Generic Constraints in C#: Design Contracts for Type Parameters
Learn how C# generic constraints define the capabilities a type argument must provide, enabling safer APIs, better compiler checks, and clearer intent.
C# Language