Does C# compile code inside an if(false) block?
- by aximili
I am just wondering if these code blocks gets compiled into .dll
I don't think this one gets compiled at all
#if SOMETHING_UNDEFINED
// some code - this is ignored by the compiler
#endif
Now what about these?
1.
if(false) {
// some code - is this compiled?
}
2.
const bool F = false;
if(F) {
// some code - is this compiled?
}
3.
bool F = false;
if(F) {
// some code - is this compiled?
}