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#...

Tagi: functions
Źródło: nietras.com
Dziel się z innymi:
World's Smallest C# Program (featuring `N`) – nietras – Programming, mechanical sympathy, machine learning and .NET ❤.

Inne 925 dni, 11 godzin, 57 minut temu Piotr Stapp 43 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi w tym miesiącu