Deepening Your C# and .NET Skills
This training course is aimed at developers who already program in C# and want to bring their knowledge up to the level of modern .NET. We pick up where the basic course leaves off: the focus is on generics, LINQ, asynchronous programming, memory and resources, testable code and architecture.
We work through each topic using practical examples of the kind we encounter every day in projects with CAD add-ins and WPF applications. Afterwards, you will write more robust, more testable and more maintainable code.
Suitable for
- Software developers with C# experience
- Software architects
- Participants in our basic C# training
Prior knowledge
- Confident use of C# syntax and object orientation
- Initial experience with Visual Studio
Format and duration
- 3 days
- Online, conveniently from home
- In our training rooms in Freiburg
- At your premises - only possible from a minimum number of participants
Dates
- currently on request
Participant materials
- Laptop
- Visual Studio 2022 or 2026 (the Community Edition is sufficient)
- Current .NET SDK (.NET 8 or newer)
- Writing materials
Training room
- Projector
- Whiteboard, blackboard or flipchart
Contents of the 3-Day Training: Advanced C#
Day 1
- Overview of day 1
- The type system in detail
- Value and reference types, struct and record
- Nullable reference types
- Pattern matching and switch expressions
- Generics
- Generic classes and methods
- Constraints with where
- Covariance and contravariance
- Delegates, events and lambda expressions
- Func, Action and custom delegates
- Subscribing to and unsubscribing from events cleanly
- LINQ
- Queries on collections
- Understanding deferred execution
- Custom extension methods
- Independent exercises
- Outlook on day 2
Day 2
- Review (training day 1)
- Overview of day 2
- Asynchronous programming
- Tasks, async and await
- Cancelling with CancellationToken
- Typical mistakes: deadlocks and async void
- Parallel Programming
- Parallel and PLINQ
- Thread safety and lock
- Channels for producers and consumers
- Memory and resources
- Garbage collector
- IDisposable and using
- Measuring and improving performance
- Span<T> and Memory<T>
- Measuring performance with BenchmarkDotNet
- Error handling and logging
- Custom exceptions
- Structured logging
- Independent exercises
- Outlook on Day 3
Day 3
- Review (Training Day 2)
- Overview of Day 3
- Testable code
- Unit tests with xUnit or NUnit
- Dependency injection
- Mocking
- Integration tests
- Using test coverage sensibly
- Architecture
- SOLID principles
- Design patterns in practice
- MVVM for WPF user interfaces
- Layers and Clean Architecture
- Modern .NET in Practice
- Configuration and the Options pattern
- Reflection and custom attributes
- Creating your own NuGet packages
- Code Quality in the Team
- Roslyn analyzers and .editorconfig
- Code reviews with pull requests
- Practical Project
- A small application from architecture to testing
- Independent exercises
- Conclusion
- Where can I find more information?
