File-based apps can reference other C# files
The new #:ref directive lets a dotnet run app.cs program pull in a second C# file. On .NET 11 RC1 it's still behind an experimental property.

Link library · Topic
Language features, new syntax and practical C# techniques. Every link was featured in The .NET Insider.
The new #:ref directive lets a dotnet run app.cs program pull in a second C# file. On .NET 11 RC1 it's still behind an experimental property.
Links point to the original articles. Short descriptions are dotnetdevs.io commentary, not the authors' words.