C# - Creating a code file with common definitions/constants/enums etc? -
In C ++ I will often create a code file that includes constants, enums, #defined -s, macros etc.
What is the best practice for that in C #? Can I create a stable class and fill it with that data? Or is there any other way?
In C #, any # Define
only applies to that file, so there is not enough for them to be a class (by putting them) instead the project In Jana / build-script) and the macro does not exist.
Comments
Post a Comment