Introducing C# 9: Top-level programs

added by DotNetKicks
6/22/2020 4:18:49 PM

485 Views

C# 9 introduces a super fun feature: Top-level programs. What's a Top-level program ? This is a simpler way to write your program on its top level: a simpler Program.cs file In your main program you have been able to write whatever you want, for example: async calls (obviously) accessing args (obviously) local functions (obviously again !)


0 comments