A
Alex
Hello everybody,
here is the situation: in C++ if I had to use some constant common for
all classes from the application, normally I would've created common.h
file, added line something like
//in common.h
const int COMMON_CONST = 1;
and after this included this common.h in stdafx.h:
//in stdafx.h
#include "common.h"
Now any C++ class could use this COMMON_CONST.
It appears I cannot put something like #region Consts directly under
my application namespace. What is the way to store some constants,
which can be used by all classes from the application in C#?
Thanks,
Alex
here is the situation: in C++ if I had to use some constant common for
all classes from the application, normally I would've created common.h
file, added line something like
//in common.h
const int COMMON_CONST = 1;
and after this included this common.h in stdafx.h:
//in stdafx.h
#include "common.h"
Now any C++ class could use this COMMON_CONST.
It appears I cannot put something like #region Consts directly under
my application namespace. What is the way to store some constants,
which can be used by all classes from the application in C#?
Thanks,
Alex