#include in C# (conditional compilation)
Posted
by HeavyWave
on Stack Overflow
See other posts from Stack Overflow
or by HeavyWave
Published on 2010-04-23T00:02:34Z
Indexed on
2010/04/23
0:03 UTC
Read the original article
Hit count: 272
c#
|preprocessor-directives
Is it possible in C# to set such a condition that if the condition is true - compile one file;If condition is false - compile another file?
Sort of like
#ifdef DEBUG
#include Class1.cs
#else
#include Class2.cs
#endif
Or possibly set it up in project properties.
© Stack Overflow or respective owner