Overview
Introduction to C# language, program structure, compilation process, and language evolution
Types & Variables
C# type system β value types, reference types, variables, constants, operators, and type casting
Strings
String manipulation, interpolation, immutability, StringBuilder, and modern string features in C#
Enums
Enumeration types, flags, and best practices for using enums in C#
Control Flow
Conditional statements, switch expressions, loops, and iteration in C#
Methods
Method declaration, parameters, overloading, and modern method features in C#
Structs & Records
Value types, record types, and when to use class vs struct vs record in C#
Anonymous & Nullable Types
Anonymous types, nullable value types, nullable reference types, and null-safety patterns in C#
Tuples
System.Tuple, ValueTuple, deconstruction, tuple patterns in switch expressions, and when to use tuples in C#
Indexers
Indexer syntax, multi-dimensional indexers, overloading, interfaces, and real-world use cases in C#
Sealed Classes
How the sealed keyword improves .NET runtime performance through devirtualization, faster casting, and reduced overhead
Collections
Arrays, generic collections, and when to use each data structure in C#
Exceptions
try/catch/finally, custom exceptions, and error handling best practices in C#
Generics
Generic types, methods, constraints, and type-safe reusable code in C#
Delegates & Events
Delegates, events, lambdas, and the observer pattern in C#
Pattern Matching
Type patterns, switch expressions, property patterns, and list patterns in modern C#
Attributes & Reflection
Built-in and custom attributes, reflection basics, late binding, performance considerations, and source generators in C#
LINQ
LINQ queries, operators, deferred execution, and performance considerations
Async/Await
Asynchronous programming in C# with async/await, Task, cancellation tokens, and channels
File I/O
File and directory operations, StreamReader/StreamWriter, File/Directory classes, FileInfo/DirectoryInfo, async file operations, and path handling in C#
Multithreading
Thread fundamentals, Task-based Asynchronous Pattern, synchronization primitives, concurrent collections, and parallel programming in C#
Modern C#
New language features from C# 8 through C# 13 β what's new and how to use them
Best Practices
Coding conventions, performance guidelines, and ASP.NET Core best practices for writing clean, efficient C# code
Interview Questions
58 essential C# interview questions with detailed answers covering language fundamentals, collections, concurrency, and advanced features