Programming & Web DevelopmentBeginner

C# and .NET Fundamentals

C# language, .NET CLI, LINQ and your first ASP.NET Core API.

Taught by Anisha Rai · Senior Software Engineer

What you'll learn

  • Create, build, run and test .NET projects from the command line with the dotnet CLI
  • Write C# with static types, switch expressions, methods and nullable reference types
  • Model a domain with classes, interfaces and records, choosing the right one for each job
  • Filter, group, sort and project collections with LINQ pipelines
  • Write asynchronous code with async, await and Task.WhenAll without blocking threads
  • Build an ASP.NET Core minimal API that stores data with Entity Framework Core and is covered by xUnit tests

About this course

Learn C# and .NET from first principles and finish with a working web API. This beginner course is for developers coming from another language, students, and anyone aiming at enterprise back-end or Unity game development roles, where C# is the everyday language. You will install the .NET 10 SDK, use the dotnet CLI to create and run projects, and learn C# types, control flow, classes, interfaces and records. You will then query data with LINQ, write non-blocking code with async and await, and build an ASP.NET Core minimal API backed by Entity Framework Core and SQLite. Along the way you will pick up the habits professional .NET teams expect: nullable reference types, dependency injection and unit tests with xUnit. You need basic programming familiarity, such as variables and loops in any language; no prior C# experience is required.

Course content

7 lessons
  1. 1Getting Started with C#, .NET and the dotnet CLIWhere C# is used, installing the .NET SDK and running your first program from the command line.Preview
  2. 2Types, Variables and Control FlowValue and reference types, nullable safety, switch expressions, loops and methods.
  3. 3Classes, Interfaces and RecordsModel real concepts with classes, share behaviour through interfaces and represent data with records.
  4. 4Collections and LINQStore data in lists and dictionaries, then query it with readable LINQ pipelines.
  5. 5Asynchronous Programming with async and awaitWrite responsive, scalable code that waits for I/O without blocking threads.
  6. 6Your First ASP.NET Core Minimal APICreate a web API with minimal APIs, route handlers, typed results and dependency injection.
  7. 7Entity Framework Core and Unit TestingPersist data with EF Core and SQLite, then protect your logic with xUnit tests.