May 14, 2021

Software Mile.com

Latest Software News and Hacks

Top Level Statement in C# 9.0

C# 9.0 introduced a new feature called Top Level Statement. Top-Level Statement allows developers to write programs without explicitly defining the class or main method. Until C# 9.0, It was all about the Main() method where program control start and ends. With C# 9.0, you don’t need to mention the Main() method or Class definition explicitly using Top-Level Statement.


Go to Source of this post
Author Of this post: Daily.NetTips
Title Of post: Top Level Statement in C# 9.0
Author Link: {authorlink}