-
-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathGlobalUsings.cs
More file actions
38 lines (36 loc) · 1.5 KB
/
GlobalUsings.cs
File metadata and controls
38 lines (36 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// These are used in all projects except samples.
// Use the new System.Threading.Lock type on .NET 9+, which enables compiler optimisations.
// On earlier targets, alias it to object so the same lock pattern works everywhere,
// but don't use the variant of "Polyfill", as it may cause issues on Runtimes that support "Thread.Abort" (e.g. .NET Framework)
#if !NET9_0_OR_GREATER
global using Lock = object;
#endif
global using System.Buffers;
global using System.Collections;
global using System.Collections.Concurrent;
global using System.Collections.Immutable;
global using System.Collections.ObjectModel;
global using System.ComponentModel;
global using System.Diagnostics;
global using System.Diagnostics.CodeAnalysis;
global using System.Globalization;
global using System.IO.Compression;
global using System.IO.MemoryMappedFiles;
global using System.Net;
global using System.Net.Http;
global using System.Net.Http.Headers;
global using System.Net.NetworkInformation;
global using System.Net.Sockets;
global using System.Reflection;
global using System.Reflection.PortableExecutable;
global using System.Runtime.CompilerServices;
global using System.Runtime.ExceptionServices;
global using System.Runtime.InteropServices;
global using System.Runtime.Serialization;
global using System.Security;
global using System.Security.Authentication;
global using System.Security.Claims;
global using System.Security.Cryptography;
global using System.Security.Principal;
global using System.Text;
global using System.Text.RegularExpressions;