Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the powerful world of .NET Source Generators in this comprehensive conference talk that demystifies automated code generation at compile time. Learn to eliminate repetitive boilerplate code by creating source generators from scratch, working with the Roslyn compiler API to analyze syntax trees, semantic models, and symbols. Master practical techniques for traversing codebases, filtering syntax nodes, and generating precise, context-aware code that integrates seamlessly with existing projects. Discover hands-on implementations that solve real-world problems including creating strongly typed entity IDs to prevent primitive obsession, generating boilerplate code, auto-implementing interfaces, and building compile-time helpers. Gain thorough understanding of source generator architecture and lifecycle, essential debugging and testing techniques, production implementation best practices, and a toolkit of ready-to-use patterns for common source generation scenarios. Designed for intermediate to advanced .NET developers, team leads, and architects seeking to improve code maintainability and explore meta-programming concepts.
Syllabus
Code that writes code - .NET Source generators - Glenn F. Henriksen - NDC Copenhagen 2025
Taught by
NDC Conferences