C#: from first program to async code

8 steps · about 3 h 40 min · Beginner

  1. Run the first C# program (tutorial, Microsoft Learn, 20 min)

    Meet the SDK, compiler and basic program structure.

  2. Work with the type system (doc, Microsoft Learn, 30 min)

    Understand built-in, value, reference and nullable types.

  3. Name code clearly (doc, Microsoft Learn, 15 min)

    Use consistent identifiers before the program grows.

  4. Model data with classes (tutorial, Microsoft Learn, 35 min)

    Combine state and behaviour in a small domain model.

  5. Define behaviour with interfaces (doc, Microsoft Learn, 25 min)

    Separate contracts from implementations for easier change and testing.

  6. Handle expected failures (doc, Microsoft Learn, 25 min)

    Use exceptions deliberately without hiding defects.

  7. Add unit tests (tutorial, Microsoft Learn, 35 min)

    Protect important behaviour with repeatable automated checks.

  8. Use async and await (doc, Microsoft Learn, 35 min)

    Keep I/O-bound applications responsive and compose asynchronous work.