C#

Overview

About C#

C# is a modern, strongly typed, object-oriented language from Microsoft that runs on the cross-platform .NET runtime. It powers web APIs, cloud services, desktop apps, games in Unity, and enterprise software. This course starts with two foundation modules: Getting Started with .NET covers installing the .NET SDK, the dotnet CLI, and how code goes from source to a running program, while C# Language Basics covers types, variables, operators, and the string handling you'll use in every program you write.

Control Flow & Methods covers branching, loops, and writing clean, reusable methods. Object-Oriented Programming then covers classes, inheritance, interfaces, and polymorphism, the model C# is built around. Collections & Generics shows you how to store and organise data with lists, dictionaries, and type-safe generic code, and LINQ shows how to query that data in a few readable lines instead of hand-written loops.

Errors, Files & Debugging covers exceptions, reading and writing files, JSON serialization, and the debugging habits that save hours. Modern C# Features covers records, pattern matching, nullable reference types, and the newer syntax you'll see in real-world codebases. Async & Concurrency covers async/await, tasks, and how to write responsive code that doesn't block on I/O.

ASP.NET Core Web APIs puts it all into practice by building real HTTP services with routing, dependency injection, and middleware. Data Access with EF Core connects those APIs to a database using Entity Framework Core, including migrations and relationships. Finally, Testing & Deployment covers unit and integration tests with xUnit, containerizing with Docker, and shipping your application with a CI/CD pipeline.

Content

12 modules
01

Getting Started with .NET

Installing the .NET SDK, choosing an editor, using the dotnet CLI, and understanding how C# source code is compiled and run on the CLR.

.NET SDK dotnet CLI CLR
02

C# Language Basics

Value and reference types, variables and constants, operators, type conversion, and working with strings, including interpolation and common string methods.

Data Types Operators Strings
03

Control Flow & Methods

If statements, switch expressions, loops, and writing methods with parameters, return values, optional arguments, and expression-bodied members.

Conditionals Loops Methods
04

Object-Oriented Programming

Classes and objects, properties, constructors, encapsulation, inheritance, abstract classes, interfaces, and polymorphism, plus when to prefer composition.

Classes Inheritance Interfaces
05

Collections & Generics

Arrays, List<T>, Dictionary<TKey, TValue>, HashSet, queues and stacks, and writing your own generic classes and methods with constraints.

List<T> Dictionary Generics
06

LINQ

Querying in-memory data with Where, Select, OrderBy, GroupBy, and Join, plus lambda expressions, deferred execution, and method vs query syntax.

Lambdas Query Operators Deferred Execution
07

Errors, Files & Debugging

Try/catch/finally, custom exceptions, reading and writing files, JSON serialization with System.Text.Json, logging, and using the debugger effectively.

Exceptions File I/O JSON
08

Modern C# Features

Records, pattern matching, nullable reference types, tuples and deconstruction, extension methods, and top-level statements in current versions of the language.

Records Pattern Matching Nullable Types
09

Async & Concurrency

Tasks, async/await, avoiding deadlocks, cancellation tokens, parallel processing, and keeping shared state safe across threads.

async / await Task Cancellation
10

ASP.NET Core Web APIs

Building HTTP APIs with minimal APIs and controllers, routing, model binding and validation, dependency injection, middleware, and authentication basics.

Minimal APIs Dependency Injection Middleware
11

Data Access with EF Core

Modelling data with Entity Framework Core, DbContext, migrations, relationships, querying with LINQ, and avoiding common performance pitfalls like N+1 queries.

EF Core Migrations SQL
12

Testing & Deployment

Unit and integration testing with xUnit, mocking dependencies, containerizing with Docker, and shipping through a CI/CD pipeline.

xUnit Docker CI/CD

What You Can Do After This Course

By the end of the curriculum you'll have shipped several real C# projects and covered the full path from your first console app to a tested, containerized web API backed by a database. Concretely, you'll be able to:

Write clean, idiomatic C# — use types, control flow, methods, and modern language features the way professional .NET teams do.

Model problems with object-oriented design — structure code with classes, interfaces, and generics that are easy to extend and test.

Query and transform data with LINQ — replace verbose loops with readable queries over collections and databases.

Handle failure and I/O gracefully — catch exceptions, work with files and JSON, and debug problems methodically.

Write responsive, asynchronous code — use async/await, tasks, and cancellation without falling into common concurrency traps.

Build and ship production web APIs — create ASP.NET Core services backed by EF Core, cover them with tests, and deploy them with Docker and CI/CD.