C# and .NET Core in Action
Programming

Course Description


This 3-day course introduces developers to modern C# programming and the power of .NET Core for building cross-platform, high-performance applications. Covering core language features, asynchronous programming, and building RESTful APIs with ASP.NET Core, participants will learn to create scalable, maintainable applications ready for cloud deployment.


Duration: 3 Days

Format: Instructor-led, hands-on coding labs, project-based learning, and real-world application development

man holding tablet computer
man holding tablet computer

Description

Course Outline


? Day 1: Modern C# Fundamentals

Session 1: Introduction to C# and .NET Core


  • Overview of .NET ecosystem and .NET Core
  • Setting up the development environment (Visual Studio / VS Code)
  • C# language fundamentals: types, variables, control flow


Session 2: Object-Oriented Programming in C#


  • Classes, objects, and inheritance
  • Interfaces and polymorphism
  • Properties, fields, and encapsulation


Session 3: Advanced C# Features


  • Delegates, events, and lambda expressions
  • LINQ: queries, filtering, projections
  • Exception handling and debugging techniques


Lab Activities:


  • Write console applications practicing OOP concepts
  • Query collections using LINQ
  • Handle exceptions and debug sample applications


? Day 2: Asynchronous Programming and .NET Core APIs

Session 1: Asynchronous Programming in C#


  • Understanding async and await
  • Task Parallel Library (TPL) basics
  • Writing responsive and scalable async code


Session 2: Building RESTful APIs with ASP.NET Core


  • ASP.NET Core architecture and middleware
  • Creating Web API controllers and routes
  • Model binding, validation, and error handling


Session 3: Data Access and Dependency Injection


  • Entity Framework Core basics
  • CRUD operations with EF Core
  • Using Dependency Injection for decoupled design


Lab Activities:


  • Build async methods and test responsiveness
  • Develop a simple REST API with ASP.NET Core
  • Implement data access layer with EF Core


? Day 3: Testing, Deployment, and Advanced Topics

Session 1: Unit Testing and Best Practices


  • Writing unit tests with xUnit or NUnit
  • Mocking dependencies for isolated tests
  • Test-driven development (TDD) overview


Session 2: Deployment and Cross-Platform Development


  • Publishing .NET Core applications
  • Running on Windows, Linux, and Docker containers
  • Continuous integration basics with GitHub Actions or Azure DevOps


Session 3: Performance Tuning and Security


  • Profiling and optimizing .NET Core apps
  • Securing APIs with authentication and authorization
  • Logging and monitoring with built-in frameworks


Lab Activities:


  • Write and run unit tests for API controllers
  • Containerize and deploy the API application
  • Implement basic authentication and logging