Hi all,

I would like to throw a compiler error based on a const value. The situation is that this constant is used on several places in the code. However, in some places the code needs adaption if this const value is changed. When this const value is changed by the programmer I would like to warn/error him of the consequences.

In C++ this can be done with a #define, but in C# you can not use #define for this.

Can this be accomplished in another way?

thank you,
Jef