csharp

    C# Programming Course

    Master C# Programming — OOP, LINQ, async/await, ASP.NET Core, EF Core, and .NET developer interviews.

    45
    Lessons
    7
    Modules
    0/45
    Completed
    Curriculum

    Enterprise learning path

    7 modules · 45 lessons

    Module 1 · Getting Started

    0/6 complete
    1. 1
      Introduction to C#
      Next up

      Welcome to the C# Programming course on TechLearningPRO — a structured path from your first Hello World to production-ready ASP.NET Core APIs, Entity Framework Core, and intervi…

    2. 2
      Setting Up Visual Studio & .NET SDK

      Before writing production C#, you need a reliable toolchain: the .NET SDK, an editor, and the C# Dev Kit extensions that power IntelliSense, debugging, and test discovery.

    3. 3
      Your First C# Program

      Every C# journey starts with a small program that compiles, runs, and prints output.

    4. 4
      Variables and Data Types

      Variables store state in memory.

    5. 5
      Operators

      Operators transform values: arithmetic for calculations, comparison for branching, logical for compound conditions, and assignment for state updates.

    6. 6
      User Input & Output

      Console I/O is the fastest way to prototype logic; production systems use structured logging, HTTP, and message buses.

    Module 2 · Control Flow

    0/5 complete
    1. 7
      Conditional Statements

      if, else if, and else branch execution based on boolean conditions.

    2. 8
      Switch Expressions

      C# 8+ switch expressions replace verbose switch statements with concise, expression-oriented syntax that returns a value.

    3. 9
      Loops

      Loops repeat work: for with counters, foreach over collections, while for unknown iterations, and do-while for at-least-once execution.

    4. 10
      Break & Continue

      break exits the nearest loop or switch; continue skips to the next iteration.

    5. 11
      Pattern Matching

      Pattern matching unifies type tests, deconstruction, and conditional logic into one expressive feature set.

    Module 3 · Methods & OOP

    0/9 complete
    1. 12
      Methods

      Methods encapsulate behavior — parameters in, return values out, optional ref/out/in modifiers for advanced scenarios.

    2. 13
      Method Overloading

      Overloading defines multiple methods with the same name but different parameter lists — count, types, or ref kinds.

    3. 14
      Classes & Objects

      Classes define blueprints; objects are runtime instances with fields, properties, and methods.

    4. 15
      Constructors

      Constructors initialize object state at creation.

    5. 16
      Encapsulation

      Encapsulation hides internal state behind controlled interfaces — private fields, public properties with validation, and methods that enforce invariants.

    6. 17
      Inheritance

      Inheritance models is-a relationships: SavingsAccount is an Account.

    7. 18
      Polymorphism

      Polymorphism lets code treat different types uniformly through a common base or interface — runtime dispatch calls the correct override.

    8. 19
      Abstraction

      Abstraction hides complexity behind simplified models — you call TransferMoney without knowing ledger SQL details.

    9. 20
      Interfaces

      Interfaces define contracts — method signatures without implementation (until default interface methods).

    Module 4 · Collections & LINQ

    0/7 complete
    1. 21
      Arrays

      Arrays are fixed-length, zero-indexed contiguous collections — T[].

    2. 22
      Lists

      List<T> is the default mutable collection — dynamic array backing with amortized O(1) Add.

    3. 23
      Dictionary

      Dictionary<TKey,TValue> provides O(1) average hash-based lookups — essential for caches, indexes, and grouping.

    4. 24
      HashSet

      HashSet<T> stores unique elements with O(1) Contains — ideal for deduplication, visited tracking, and set algebra (Union, Intersect, Except).

    5. 25
      Queue & Stack

      Queue<T> is FIFO (first in, first out); Stack<T> is LIFO (last in, first out).

    6. 26
      LINQ Basics

      LINQ (Language Integrated Query) queries collections declaratively with Where, Select, OrderBy, GroupBy — unified syntax for IEnumerable and IQueryable.

    7. 27
      LINQ Advanced

      Advanced LINQ covers GroupBy aggregations, Join relational-style merges, Aggregate folds, Zip, set operators, and custom operators.

    Module 5 · Exception & File Handling

    0/5 complete
    1. 28
      Exception Handling

      Exceptions signal exceptional failure — not normal control flow.

    2. 29
      Custom Exceptions

      Custom exceptions express domain failures — InsufficientFundsException, PatientNotFoundException — enabling callers to catch precisely without string matching.

    3. 30
      File Handling

      File APIs span System.IO — File, Directory, FileStream, StreamReader/Writer, and async variants.

    4. 31
      Serialization

      Serialization converts objects to storable/transmittable formats — binary, XML, JSON.

    5. 32
      JSON Handling

      JSON dominates web APIs.

    Module 6 · Modern C#

    0/7 complete
    1. 33
      Delegates

      A delegate is a type-safe function pointer — references methods matching a signature.

    2. 34
      Events

      Events wrap delegates with publish-subscribe semantics — only the declaring class can raise (invoke) them; external code subscribes with +=.

    3. 35
      Lambda Expressions

      Lambdas are inline anonymous functions — (x, y) => x + y — powering LINQ, Task.Run, and fluent configuration.

    4. 36
      Generics

      Generics parameterize types — List<T>, Dictionary<TKey,TValue>, your own Repository<TEntity> — providing compile-time type safety without boxing value types.

    5. 37
      Extension Methods

      Extension methods add methods to existing types without modification — static methods in static classes with first parameter marked this.

    6. 38
      Async & Await

      async/await models asynchronous I/O without blocking threads — critical for ASP.NET Core scalability.

    7. 39
      Dependency Injection Basics

      Dependency Injection in ASP.NET Core registers services in Program.cs and resolves them via constructor injection.

    Module 7 · Real-world Development

    0/6 complete
    1. 40
      Working with APIs

      ASP.NET Core builds REST APIs with minimal APIs or controllers, model binding, validation, OpenAPI/Swagger, and ProblemDetails error responses.

    2. 41
      Database Connectivity (Entity Framework Core Basics)

      Entity Framework Core is the ORM mapping C# classes to relational tables — LINQ queries translate to SQL.

    3. 42
      Logging

      ILogger<T> structured logging integrates Console, Debug, EventSource, and third-party sinks (Serilog, Application Insights).

    4. 43
      Unit Testing with xUnit

      xUnit is the dominant .NET test framework — [Fact] for single tests, [Theory] with [InlineData] for parameterized cases.

    5. 44
      Performance Best Practices

      .NET 8 delivers impressive throughput, but performance still requires discipline: avoid allocations in hot paths, use Span<T>, pool objects, cache wisely, and profile befo…

    6. 45
      Interview Preparation & Final Project

      You have covered C# syntax, OOP, collections, LINQ, async, DI, EF Core, APIs, logging, testing, and performance. Includes interactive C# interview question bank.