C#: from first program to async code
8 steps · about 3 h 40 min · Beginner
- Run the first C# program (tutorial, Microsoft Learn, 20 min)
Meet the SDK, compiler and basic program structure.
- Work with the type system (doc, Microsoft Learn, 30 min)
Understand built-in, value, reference and nullable types.
- Name code clearly (doc, Microsoft Learn, 15 min)
Use consistent identifiers before the program grows.
- Model data with classes (tutorial, Microsoft Learn, 35 min)
Combine state and behaviour in a small domain model.
- Define behaviour with interfaces (doc, Microsoft Learn, 25 min)
Separate contracts from implementations for easier change and testing.
- Handle expected failures (doc, Microsoft Learn, 25 min)
Use exceptions deliberately without hiding defects.
- Add unit tests (tutorial, Microsoft Learn, 35 min)
Protect important behaviour with repeatable automated checks.
- Use async and await (doc, Microsoft Learn, 35 min)
Keep I/O-bound applications responsive and compose asynchronous work.