This is a question of curiosity. I was messing around with some code and realized that the release is still compiling:
class Program
{
[Conditional("DEBUG")]
private static void Main()
{
}
}
I thought ConditionalAttribute should have destroyed the method, but that is not the case. What is special about the entry point?
source
share