Show / Hide Table of Contents

Krypton Developer Documentation - How to Manage Using Statements

As part of C# 10 & .NET 6, it is now possible to contain all using statements in one central file. The benefits to doing this is that it frees up system resources, and avoids a spider web of using declarations.

As a result, all projects contain a GlobalDeclarations file in a directory named Globals. If you need to add a new using statement, please add it to the aforementioned file, while removing the unneeded statements from the source code file.

If a resource is only being used within one class itself, for example ContentAlignment, then you need to define it under the license header, as follows:

using ContentAlignment = System.Drawing.ContentAlignment;
Back to top Krypton Component Suite 2024 BSD 3-Clause License © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. Modifications by Peter Wagner (aka Wagnerp), Simon Coghlan (aka Smurf-IV), Giduac & Ahmed Abdelhameed et al. 2017 - 2025. All rights reserved. https://github.com/Krypton-Suite