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 5 dni, 19 godzin, 57 minut temu Piotr Stapp 35 pokaż kod licznika zwiń

Wczytywanie artykułów...

Konkurs z Code Europe - ranking

1
(30,04)
3
(15)
4
(15)
5
(5,01)

październik

listopad

09.

Najaktywniejsi w tym miesiącu