C#: OOP & Type System. Classes & Inheritance. // Class with properties and constructor public class Animal { public string Name { get; init; } // init-only — set only in constructor/initializer public int Age { get; priv…
ReadC#: async/await & Tasks. C# async/await is built on the Task Parallel Library (TPL). async/await transforms methods into state machines that resume on completion — no thread is blocked while awaiting.. async/await Basics…
ReadC#: Modern Features & Interview Questions. Records (C# 9+). // Record — immutable reference type with value equality public record User(int Id, string Name, string Email); var alice = new User(1, "Alice", "alice@example.…
ReadC#: Language Fundamentals. C# is a strongly-typed, object-oriented language developed by Microsoft. It runs on the .NET CLR and is the primary language for ASP.NET Core, Unity, and Xamarin/MAUI. Modern C# (10–13) continu…
ReadC#: LINQ & Collections. LINQ (Language Integrated Query) provides a unified syntax for querying arrays, lists, XML, databases, and any IEnumerable<T> source. It uses deferred execution — queries run when iterated, not wh…
ReadC#: Testing & Benchmarking. xUnit Patterns. // Shared context — expensive setup once per class public class DatabaseFixture : IDisposable { public AppDbContext Db { get; } public DatabaseFixture() { var options = new DbC…
ReadC#: Reflection, Attributes & Source Generators. Custom Attributes. // Define a custom attribute [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class Aud…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever