How to define constants in Visual C# like #define in C? July 21, 2023 by Tarik public const int NUMBER = 9; You’d need to put it in a class somewhere, and the usage would be ClassName.NUMBER