Talk Description
"One of the features added in C# 9 is called "source generators", enabling a developer to create new code at compile time. This can be used for a myriad of cases, such as optimization, automating repetitive code, and dynamic API creation. In this session, Jason will cover how source generators work and demonstrate a number of implementations."
Speaker Bio
"Jason Bock is a Developer Advocate at Quicken Loans and a Microsoft MVP (C#). He has over 25 years of experience working on a number of business applications using a diverse set of frameworks and languages. He is the author of ".NET Development Using the Compiler API", "Metaprogramming in .NET", and "Applied .NET Attributes". He has written numerous articles on software development issues and has presented at a number of conferences and user groups. He is a leader of the Twin Cities Code Camp. Jason holds a Master's degree in Electrical Engineering from Marquette University. Visit his web site at http://www.jasonbock.net."
Links
- Meetup Event page
- IntroTalk Slides
- Jason's social links:
- Slides from his various talks (including this one)
- Jason's related Github repos:
- References:
- Introducing C# Source Generators
- Generating Code in C#
- New C# Source Generator Samples
- Source Generators Cookbook
- C# Source Generators - Write Code that Writes Code
- Source Generators in .NET 5 with ReSharper
- .NET 5 Source Generators - MediatR - CQRS - OMG!
- A list of C# Source Generators
- Using C# Source Generators to create an external DSL
- Using source generators to find all routable components in a Blazor WebAssembly app
- Persisting output files from source generators
- Getting started with the roslyn APIs: Writing code with code
- C# 9 records as strongly-typed ids - Part 5: final bits and conclusion
- Consider using a source generator to generate scoped css files #30841
- C# Source Generators
Sponsors
- Corriculo Recruitment - Kindly covering the venue, drinks, and helping us at each event
- Everstack - Dan's company, helping organise and manage the user group
- JetBrains - Prize draw sponsor (any JB product the winner likes)
- Manning Books - Prize draw sponsor (ebook of winner's choice)
- Packt - Prize draw sponsor (ebook of winner's choice)
Prize Draw Winners
- Jetbrains #1: Michael K
- Jetbrains #2: Joel H
- Manning ebook: Lee O
- Packt ebook: Asela