TLDR: Tongue in cheek post on how - in .NET 5+ and C# 9+ - the smallest possible C# program appears to be {} or 2 characters long. This doesn’t do much, though. Using N (github, nuget) you can write a program doing something in 4 characters with e.g. N(); in .NET 6 and C# 10. Along the way learn a few C# 10 and nuget packaging tricks incl. global usings and implicit usings. Recently, while lying facedown on an exercise mat, I had a fun idea for how to write the world’s smallest C# program in .NET 6/C#...
Strona głównaInne
Inne 1125 dni, 12 godzin, 49 minut temu 48 pokaż kod licznika zwiń