Shawn Wildermuth

Camp Counselor

All About C# Source Generators

Event Logo

Wednesday, July 31, 2024 - 3:30 PM UTC, for 1 hour.

Regular, 60 minute presentation

Room: African 50

c#
dotnet
visual studio

While using Reflection is still a necessary tool for any developer. The Roslyn source generators are a compelling way to write code while your users are writing their code. In this talk, Shawn will build a source generator from scratch to show you all the gory details. While many developers won't need to write source generators as part of their everyday development job; understanding what is happening behind the scenes will aid in debugging when it goes wrong. In addition, developers can see new metaprogramming techniques that might help them build a better ecosystem in their own jobs.

Prerequisites

Should have familiarity with C#.

Take Aways

  • Make sense of code generation under the covers of .NET Core
  • See the metaprogramming opportunities of Source Generators
favorited by:
Spenser Austin James McCollum Brandt Hofer Craig Jeffords bryan shannon Benjamin Gavin Elizabeth Groom Allen Zaudtke Adam Tegen Barry Stahl Michael Duren Matthew Ives Drew Douglas Cameron Vetter Brett Allenstein Ross Larson John Martin Dustin Ewers William Schaeffer YURSHIA XIONG Steve Riebe Benjamin Sibley Jesse Dahir-Kanehl Edward Lichtman Ryan Holmes Jacob Netz Dan Willman Caleb Autry Jason Cairol Kevin Curtis Christopher Ebbert