In .NET applications, using a GlobalUsings.cs file to centralize all `using` directives has become a common pattern. This file can also include type aliases. Global usings, introduced in C# 10, allow declaring a namespace once and making it available across the application. Type aliasing in C# allows mapping to other types, including tuples and non-open generics. However, type aliasing does not work with nullable reference types.

3m read timeFrom bartwullems.blogspot.com
Post cover image
Table of contents
Global UsingsType Aliasing for (almost) any typeMore information

Sort: