How to define the Preprocessor Global directive in c #

advertisements

My Question is how to define Preprocessor Directive Global at one place for all C# classes in website.


I don't think there is a way to create a global #define.

You have to create one for each project/assembly in the solution if you need all source code files to know of that #define.