A
Alain Dekker
In C++ you can do this:
#define MY_MAGIC_NUMBER 5
....
if (nTheUserID == 5)
{
DoSomething();
}
but I can't find how to do that in C#. The MSDN documentation appears to
suggest that this is not possible like it was in C/C++. Is that right? Is
there any way to use the preprocessor to define macros in C#?
Thanks,
Alain
#define MY_MAGIC_NUMBER 5
....
if (nTheUserID == 5)
{
DoSomething();
}
but I can't find how to do that in C#. The MSDN documentation appears to
suggest that this is not possible like it was in C/C++. Is that right? Is
there any way to use the preprocessor to define macros in C#?
Thanks,
Alain