The new syntax for "using" with C# makes it much easier to nest using blocks together. If you're keeping your methods nice and short in the first place, then you'll probably be able to use this just about everywhere.
Popular posts from this blog
With .NET 5, you get a new concept called record . Lots of cool things, one of which is that you can serialize and deserialize with JSON just like a class, except you don't need to define properties one at a time, or even the body of the type. Apparently XML serialization doesn't quite work, so stick with JSON. View code on GitHub
Don't be afraid of using the .NET CLI and skipping Visual Studio. Visual Studio Code is a fantastic IDE for .NET projects - obviously not as powerful as Visual Studio, but it's significantly lighter and faster, and the integrated terminal is desperately needed in Visual Studio. The .NET CLI is actually incredibly easy to work with. This video shows some of the basic commands. See the documentation for more. View code on GitHub