C# Anti-Pattern: Abusing Global Using Directives

Michael Moreno
3 min readAug 5, 2023

Sometimes new language features can engender new anti-patterns.

C# 10 introduced global using directives, a feature that allows developers to prepend any using directive with the keyword global. This has the effect of making the using directive accessible anywhere in the project.

--

--