How Hello World! changed – top level statements and functions (C# 9)

How Hello World! changed – top level statements and functions (C# 9)

C# 9 comes with many new features to enhance productivity and fix bugs. One productivity enhancement comes for small and simple programs also helps learning C#: top level statements. This also allows for a new way to create a “Hello World” program with C#. It’s not the first time that a new C# language feature made a change for “Hello World”. This also happened with C# 6. Let’s come on a tour how “Hello World” changed during the C# years, and what’s going on with top level statements and functions. Continue reading How Hello World! changed – top level statements and functions (C# 9)