Session
Codifying Our C# Code
Raise your hand if you've ever written code so similar to something else in your codebase, it could have been generated by a tool*. Did you take the time to codify that pattern? Why not?
That's the perfect scenario for us to codify our code. To write code to generate and/or modify other code in the codebase. In the C# world, we have some built-in ways to codify our code. 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.
* You don't have to raise your hand.
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