A microblog with minimal prose and maximum amount of code
Inspired by the release notes in VS about "copy JSON to C#" I tinkered with making a T4 template to do so.
The T4 template uses some new C# language feautures + System.Text.Json
so it won't work with T4 bundled with Visual Studio (still on .NET framework).
However it works fine from command line but you need to use a build of dotnet
that support raw string literals. The version on my machine is 6.0.300-preview.22204.3