Authorised Territory code examples - This .NET 8 C# Roslyn #tutorial shows how to generate C# class file using Roslyn APIs.
First, we create JSON file that acts as a spec to C# class.
Next, the JSON file is serialized and contents passed to a function that generates a class string.
Finally, the string representing a class is saved as C# file and inspected using Visual Studio code.