rot13
rot13 copied to clipboard
Version using more up to date language features
Using top-level statements (see https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/top-level-statements) and Linq along with pattern matching (see https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching)
I would suggest leaving this file as it is right now and creating a separate one for C# 10, because it's quite different, to say at least. Also, if you will, don't add unnecessary comments. Those belong here and add no value to the code itself.