C# 8 Updates

C# 8 Updates

Bonus chapter for Professional C# 7 and .NET Core 2 with updates for C# 8: nullable reference types, using declaration, readonly members, default interface members, async streams, switch expressions, pattern matching enhancements, indices and ranges, and more! Continue reading C# 8 Updates

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)