Complete C# Course

C# 14 on .NET 10 LTS • 60 chapters • 300 topics • code example for every topic

Chapter 1: Setup, .NET 10, and C# 14

Setup, .NET 10, and C# 14 Fundamentals, Setup, .NET 10, and C# 14 Syntax and Structure, Setup, .NET 10, and C# 14 Practical Example, Setup, .NET 10, and C# 14 Common Mistakes, Setup, .NET 10, and C# 14 Best Practices

Open chapter

Chapter 2: First Program and File-Based Apps

Opening Files, Reading Data, Writing Data, Paths and Resources, Error and Resource Handling

Open chapter

Chapter 3: Variables and Constants

Declaring Variables, Initialization, Scope, Constants/Readonly Values, Naming and Safety

Open chapter

Chapter 4: Built-in Types

Built-in Types, Type Conversion, Type Inference, Custom Types, Type Safety

Open chapter

Chapter 5: Operators and Expressions

Arithmetic Operators, Comparison Operators, Logical Operators, Assignment Operators, Precedence and Safe Use

Open chapter

Chapter 6: Console Input and Output

Console Input and Output Fundamentals, Console Input and Output Syntax and Structure, Console Input and Output Practical Example, Console Input and Output Common Mistakes, Console Input and Output Best Practices

Open chapter

Chapter 7: Strings

Creating Strings, Common String Operations, Searching and Comparing, Formatting and Conversion, Performance and Safety

Open chapter

Chapter 8: Conditions and switch

if, else if, switch, Conditional Expressions, Decision-Logic Best Practices

Open chapter

Chapter 9: Loops

for Loop, while Loop, do/foreach Variants, break and continue, Loop Design

Open chapter

Chapter 10: Methods

Declaring Methods, Parameters, Return Values, Overloading, Method Design

Open chapter

Chapter 11: Parameters and Return Values

Parameters and Return Values Fundamentals, Parameters and Return Values Syntax and Structure, Parameters and Return Values Practical Example, Parameters and Return Values Common Mistakes, Parameters and Return Values Best Practices

Open chapter

Chapter 12: Arrays

Declaring Arrays, Indexing Elements, Looping Through Arrays, Multidimensional Arrays, Array Safety and Common Errors

Open chapter

Chapter 13: Multidimensional and Jagged Arrays

Declaring Arrays, Indexing Elements, Looping Through Arrays, Multidimensional Arrays, Array Safety and Common Errors

Open chapter

Chapter 14: Collections

Creating Collections, Adding and Removing, Searching and Iterating, Sorting/Transforming, Choosing the Right Collection

Open chapter

Chapter 15: List, Dictionary, HashSet, Queue and Stack

List, Dictionary, HashSet, Queue and Stack Fundamentals, List, Dictionary, HashSet, Queue and Stack Syntax and Structure, List, Dictionary, HashSet, Queue and Stack Practical Example, List, Dictionary, HashSet, Queue and Stack Common Mistakes, List, Dictionary, HashSet, Queue and Stack Best Practices

Open chapter

Chapter 16: Classes and Objects

Declaring Classes, Fields and State, Methods and Behavior, Constructors, Encapsulation

Open chapter

Chapter 17: Constructors and Object Initialization

Creating Objects, Object State, Object Methods, Lifetime, Object Design

Open chapter

Chapter 18: Properties and Indexers

Index Purpose, Creating Indexes, Composite Indexes, Reading Execution Plans, Index Trade-offs

Open chapter

Chapter 19: Encapsulation and Access Modifiers

Encapsulation and Access Modifiers Fundamentals, Encapsulation and Access Modifiers Syntax and Structure, Encapsulation and Access Modifiers Practical Example, Encapsulation and Access Modifiers Common Mistakes, Encapsulation and Access Modifiers Best Practices

Open chapter

Chapter 20: Inheritance and Polymorphism

Base and Derived Types, Overriding Behavior, Polymorphism, Protected Members, Composition vs Inheritance

Open chapter

Chapter 21: Interfaces

Declaring Interfaces, Implementing Interfaces, Multiple Contracts, Default/Static Members, Interface Design

Open chapter

Chapter 22: Abstract Classes

Declaring Classes, Fields and State, Methods and Behavior, Constructors, Encapsulation

Open chapter

Chapter 23: Records and Record Structs

Records and Record Structs Fundamentals, Records and Record Structs Syntax and Structure, Records and Record Structs Practical Example, Records and Record Structs Common Mistakes, Records and Record Structs Best Practices

Open chapter

Chapter 24: Structs and Enums

Structs and Enums Fundamentals, Structs and Enums Syntax and Structure, Structs and Enums Practical Example, Structs and Enums Common Mistakes, Structs and Enums Best Practices

Open chapter

Chapter 25: Generics

Generic Types, Generic Functions/Methods, Constraints, Generic Collections, Generic Design

Open chapter

Chapter 26: Delegates

Delegates Fundamentals, Delegates Syntax and Structure, Delegates Practical Example, Delegates Common Mistakes, Delegates Best Practices

Open chapter

Chapter 27: Events

Events Fundamentals, Events Syntax and Structure, Events Practical Example, Events Common Mistakes, Events Best Practices

Open chapter

Chapter 28: Lambdas

Lambda Syntax, Parameters and Capture, Returning Values, Callbacks, Lambda Best Practices

Open chapter

Chapter 29: LINQ Fundamentals

LINQ Sources, Filtering, Projection, Grouping/Joining, Execution and Performance

Open chapter

Chapter 30: Advanced LINQ

LINQ Sources, Filtering, Projection, Grouping/Joining, Execution and Performance

Open chapter

Chapter 31: Nullable Reference Types

Built-in Types, Type Conversion, Type Inference, Custom Types, Type Safety

Open chapter

Chapter 32: Pattern Matching

Pattern Matching Fundamentals, Pattern Matching Syntax and Structure, Pattern Matching Practical Example, Pattern Matching Common Mistakes, Pattern Matching Best Practices

Open chapter

Chapter 33: Tuples and Deconstruction

Tuples and Deconstruction Fundamentals, Tuples and Deconstruction Syntax and Structure, Tuples and Deconstruction Practical Example, Tuples and Deconstruction Common Mistakes, Tuples and Deconstruction Best Practices

Open chapter

Chapter 34: Exceptions

Throwing Errors, Catching Errors, Finally/Cleanup, Custom Errors, Error-Handling Best Practices

Open chapter

Chapter 35: Files and Streams

Opening Files, Reading Data, Writing Data, Paths and Resources, Error and Resource Handling

Open chapter

Chapter 36: JSON and Serialization

JSON and Serialization Fundamentals, JSON and Serialization Syntax and Structure, JSON and Serialization Practical Example, JSON and Serialization Common Mistakes, JSON and Serialization Best Practices

Open chapter

Chapter 37: Regular Expressions

Regular Expressions Fundamentals, Regular Expressions Syntax and Structure, Regular Expressions Practical Example, Regular Expressions Common Mistakes, Regular Expressions Best Practices

Open chapter

Chapter 38: Date, Time, and Time Zones

Date, Time, and Time Zones Fundamentals, Date, Time, and Time Zones Syntax and Structure, Date, Time, and Time Zones Practical Example, Date, Time, and Time Zones Common Mistakes, Date, Time, and Time Zones Best Practices

Open chapter

Chapter 39: Span, Memory, and Performance

Memory Model, Allocation, Lifetime, Ownership/References, Performance and Safety

Open chapter

Chapter 40: Async and await

Asynchronous Basics, Starting Async Work, Awaiting Results, Error and Cancellation, Async Best Practices

Open chapter

Chapter 41: Tasks and Cancellation

Tasks and Cancellation Fundamentals, Tasks and Cancellation Syntax and Structure, Tasks and Cancellation Practical Example, Tasks and Cancellation Common Mistakes, Tasks and Cancellation Best Practices

Open chapter

Chapter 42: Parallel Programming

Parallel Programming Fundamentals, Parallel Programming Syntax and Structure, Parallel Programming Practical Example, Parallel Programming Common Mistakes, Parallel Programming Best Practices

Open chapter

Chapter 43: Synchronization and Thread Safety

Creating Threads, Shared State, Synchronization, Thread Safety, Threading Best Practices

Open chapter

Chapter 44: Reflection and Attributes

Reflection and Attributes Fundamentals, Reflection and Attributes Syntax and Structure, Reflection and Attributes Practical Example, Reflection and Attributes Common Mistakes, Reflection and Attributes Best Practices

Open chapter

Chapter 45: Extension Members and C# 14 Features

Extension Members and C# 14 Features Fundamentals, Extension Members and C# 14 Features Syntax and Structure, Extension Members and C# 14 Features Practical Example, Extension Members and C# 14 Features Common Mistakes, Extension Members and C# 14 Features Best Practices

Open chapter

Chapter 46: Dynamic and Expression Trees

Dynamic and Expression Trees Fundamentals, Dynamic and Expression Trees Syntax and Structure, Dynamic and Expression Trees Practical Example, Dynamic and Expression Trees Common Mistakes, Dynamic and Expression Trees Best Practices

Open chapter

Chapter 47: NuGet and Project Structure

NuGet and Project Structure Fundamentals, NuGet and Project Structure Syntax and Structure, NuGet and Project Structure Practical Example, NuGet and Project Structure Common Mistakes, NuGet and Project Structure Best Practices

Open chapter

Chapter 48: Testing C# Code

Unit Test Basics, Arrange-Act-Assert, Edge Cases, Mocks/Fakes Concepts, Automation and Coverage

Open chapter

Chapter 49: Logging, Configuration, and Dependency Injection

Logging, Configuration, and Dependency Injection Fundamentals, Logging, Configuration, and Dependency Injection Syntax and Structure, Logging, Configuration, and Dependency Injection Practical Example, Logging, Configuration, and Dependency Injection Common Mistakes, Logging, Configuration, and Dependency Injection Best Practices

Open chapter

Chapter 50: HTTP Clients and Networking

HTTP Fundamentals, Requests, Responses, Serialization, Errors and Resilience

Open chapter

Chapter 51: ASP.NET Core Fundamentals

ASP.NET Core Fundamentals Fundamentals, ASP.NET Core Fundamentals Syntax and Structure, ASP.NET Core Fundamentals Practical Example, ASP.NET Core Fundamentals Common Mistakes, ASP.NET Core Fundamentals Best Practices

Open chapter

Chapter 52: Minimal APIs

Minimal APIs Fundamentals, Minimal APIs Syntax and Structure, Minimal APIs Practical Example, Minimal APIs Common Mistakes, Minimal APIs Best Practices

Open chapter

Chapter 53: MVC and Razor Concepts

MVC and Razor Concepts Fundamentals, MVC and Razor Concepts Syntax and Structure, MVC and Razor Concepts Practical Example, MVC and Razor Concepts Common Mistakes, MVC and Razor Concepts Best Practices

Open chapter

Chapter 54: Web APIs and Validation

Web APIs and Validation Fundamentals, Web APIs and Validation Syntax and Structure, Web APIs and Validation Practical Example, Web APIs and Validation Common Mistakes, Web APIs and Validation Best Practices

Open chapter

Chapter 55: Entity Framework Core

Entity Framework Core Fundamentals, Entity Framework Core Syntax and Structure, Entity Framework Core Practical Example, Entity Framework Core Common Mistakes, Entity Framework Core Best Practices

Open chapter

Chapter 56: Authentication, Authorization, and Security

Threat Model, Input Validation, Authentication/Authorization, Secret Handling, Secure Defaults

Open chapter

Chapter 57: Desktop: WinForms and WPF Concepts

Desktop: WinForms and WPF Concepts Fundamentals, Desktop: WinForms and WPF Concepts Syntax and Structure, Desktop: WinForms and WPF Concepts Practical Example, Desktop: WinForms and WPF Concepts Common Mistakes, Desktop: WinForms and WPF Concepts Best Practices

Open chapter

Chapter 58: Cross-Platform .NET MAUI Concepts

Cross-Platform .NET MAUI Concepts Fundamentals, Cross-Platform .NET MAUI Concepts Syntax and Structure, Cross-Platform .NET MAUI Concepts Practical Example, Cross-Platform .NET MAUI Concepts Common Mistakes, Cross-Platform .NET MAUI Concepts Best Practices

Open chapter

Chapter 59: Interop, unsafe Code, and Native APIs

Interop, unsafe Code, and Native APIs Fundamentals, Interop, unsafe Code, and Native APIs Syntax and Structure, Interop, unsafe Code, and Native APIs Practical Example, Interop, unsafe Code, and Native APIs Common Mistakes, Interop, unsafe Code, and Native APIs Best Practices

Open chapter

Chapter 60: Architecture, Performance, Deployment, and Capstone

Architecture, Performance, Deployment, and Capstone Fundamentals, Architecture, Performance, Deployment, and Capstone Syntax and Structure, Architecture, Performance, Deployment, and Capstone Practical Example, Architecture, Performance, Deployment, and Capstone Common Mistakes, Architecture, Performance, Deployment, and Capstone Best Practices

Open chapter