-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathGlobalUsings.cs
More file actions
21 lines (20 loc) · 1.45 KB
/
GlobalUsings.cs
File metadata and controls
21 lines (20 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -----------------------------------------------------------------------------
// Global using directives for the C-Sharp solution.
// These namespaces are imported globally so they don’t need to be repeatedly declared
// in individual files, improving readability and reducing boilerplate.
//
// Guidelines:
// - Keep only the most commonly used namespaces here.
// - Add project-specific namespaces (e.g., Utilities.Extensions) only if they are
// required across the majority of files in the project.
// - Avoid placing rarely used namespaces here to maintain clarity.
// -----------------------------------------------------------------------------
global using System; // Core base classes and fundamental types
global using System.Collections.Generic; // Generic collection types (List, Dictionary, etc.)
global using System.Globalization; // Culture-related information (dates, numbers, formatting)
global using System.Linq; // LINQ query operators for collections
global using System.Numerics; // Numeric types such as BigInteger and Complex
global using System.Security.Cryptography; // Cryptographic services (hashing, encryption, random numbers)
global using System.Text; // Text encoding, StringBuilder, etc.
global using System.Text.RegularExpressions; // Regular expression support
global using Utilities.Extensions; // Common extension methods used across the solution