|
-
April 26th, 2010, 02:09 AM
#1
Throw compiler error based on const value
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|