C# 9.0 comes with nice new feature called top-level programs. It's something that teachers of beginner classes will love for sure. Imagine - you start teaching C# with only two lines of code on screen. All missing code is generated by compiler. This blog post introduces top-level programs and shows some secrets of new C# compiler.