■ C# 10.0 での新機能
・グローバルな using ディレクティブ (Global using directive)
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/globalusingdirective
どこかの1ファイルで using するだけですべてのファイルで using したことになる。
global using System.Text; internal class Class1 { void Method() => Console.WriteLine(new StringBuilder()); }
// using System.Text; していなくとも System.Text.StringBuilder が使えている internal class Class2 { void Method() => Console.WriteLine(new StringBuilder()); }