Jiří Činčura
C# 9 Source Generators - let the machine do the programming
#1about 2 minutes
What are C# source generators and how they work
Source generators are a metaprogramming feature that adds new source code to your project during the compilation phase.
#2about 6 minutes
Exploring common use cases for source generators
Source generators are ideal for replacing reflection, creating high-performance parsers, generating strongly-typed APIs, and producing AOT-friendly code.
#3about 3 minutes
Understanding the limitations and capabilities of generators
Source generators can only add new code, not modify existing code, and they run in a non-deterministic order but can produce compiler diagnostics.
#4about 6 minutes
Demo: Building a simple hello world generator
A step-by-step walkthrough shows how to create a basic source generator that adds a static class and method to the compilation.
#5about 7 minutes
Demo: Generating a C# class from a CSV file
This demonstration shows how to read an external file during compilation and dynamically generate a C# class based on its contents.
#6about 10 minutes
Demo: Automating the INotifyPropertyChanged pattern
Learn how to use attributes and a syntax receiver to automatically generate the boilerplate code for the INotifyPropertyChanged interface.
#7about 6 minutes
Demo: Creating a high-performance custom serializer
This example demonstrates building a source generator that creates a fast, custom serialization method for a class marked with an attribute.
#8about 4 minutes
Managing dependencies and producing compiler diagnostics
Understand the two types of dependencies for source generators and learn how to report custom warnings or errors back to the developer.
#9about 2 minutes
Summary and key takeaways for source generators
Source generators are a powerful tool for library authors to reduce boilerplate, improve performance, and create better developer experiences.
Related jobs
Jobs that call for the skills explored in this talk.
Senior Softwareentwickler (m/w/d)
PROSOZ Herten GmbH
Herten, Germany
Remote
€59-80K
Intermediate
Senior
.NET
C#
+3
Senior Fullstack Engineer – Angular/.Net (f/m/d)
Apaleo
München, Germany
Remote
€65-85K
Senior
JavaScript
.NET
+2
Matching moments
07:56 MIN
How generative AI is changing software development
The transformative impact of GenAI for software development and its implications for cybersecurity
00:02 MIN
Introduction to generative AI in the browser
Generate AI in the Browser with Chrome AI - Raymond Camden
06:59 MIN
Introducing Spring AI for generative AI applications
Building AI-Driven Spring Applications With Spring AI
20:05 MIN
How Konveyor AI uses RAG and agents for code generation
Navigating Application Modernization - Leveraging Gen-AI
10:26 MIN
A live demonstration of GitHub Copilot in VS Code
How we will build the software of tomorrow
26:01 MIN
Using generative AI to enhance developer productivity
Throwing off the burdens of scale in engineering
06:13 MIN
The evolution of how developers source their code
Can Machines Dream of Secure Code? Emerging AI Security Risks in LLM-driven Developer Tools
02:06 MIN
Understanding the Roslyn compiler platform for C#
Building a Compiler with C#
Featured Partners
Related Videos
Livecoding with AI
Rainer Stropek
Building a Compiler with C#
Florian Rappl
Using code generation for test automation – the fancy way
Roman Alexis Anastasini
GenAI Unpacked: Beyond Basic
Damir
C# 13 Unleashed: Live Demos of my Top 10 Cutting-Edge Features!
Ambesh Singh & Sachin Kumar
Hacking C# from the inside - how to do anything in NET
Adam Furmanek
How to become an AI toolsmith
Clemens Helm
5 features that help you get the most out of C# 10
Louëlla Creemers
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Software Engineer
tree-IT GmbH
Bad Neustadt an der Saale, Germany
€54-80K
Intermediate
Senior
Java
TypeScript
Spring Boot

Full Stack Developer (all genders welcome)
ROSEN Technology and Research Center GmbH
Osnabrück, Germany
Senior
React
DevOps
Next.js
TypeScript
Cloud (AWS/Google/Azure)




Front End Engineering Manager ( Generative AI experience )
Accenture
Charing Cross, United Kingdom
REST
React
GraphQL
React Native
Continuous Integration


