Session
Coding Code with C#
A way too common scenario for developers is writing code to fit a specific pattern, and having to remember everything for the pattern. Add a property here, a method with a specific name there, and don't forget to add the correct attribute to the new class. But what if we forget a step? Manually reviewed pull requests can only stop so many accidental mistakes.
This is the perfect scenario for us to codify our code. To write code that can analyze, modify, or even generate new code in our codebase. In the C# world, we have some built-in ways to do just that. We can create a Roslyn Analyzer and optionally a Roslyn Code Fix to enforce code similarity. Or we can create a Source Generator to generate code at build time.
In this session we'll review the basics of those aforementioned features built into C# for codifying our code. We'll also take time to discuss the pros and cons of those features to understand when it's beneficial to codify our code or not.

AL Rodriguez
Principal Developer, Developer, Developer
Orlando, Florida, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top