C# 10 Preview: Global Usings

C# 10 removes the “Vertical Waste” at the top of every file.

Global Usings

Instead of typing `using System;` in 1000 files, you define it once.

// GlobalUsings.cs
global using System;
global using System.Collections.Generic;
global using System.Linq;

Better yet, the SDK does it for you via `enable` in the csproj. This reduces file noise significantly.


Discover more from C4: Container, Code, Cloud & Context

Subscribe to get the latest posts sent to your email.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.