Bite-Size C# 10 - Global Usings

added by DotNetKicks
8/10/2021 4:48:35 PM

637 Views

Let's continue our Bite-Size C# 10 series with a feature that you can use right now: global using! At the top of all C# files is a collection of using statements which specify namespaces that the file needs to compile: using System; using System.Collections.Generic; using System.Threading.Tasks; using Dapper; using AutoMapper; When you have many files in the same project, chances are a lot of the using statements in any particular file will also appear in all the others.


0 comments