C# !Conditional attribute?

First, having the Conditional attribute is not equivalent to having #if inside the method. Consider: ShowDebugString(MethodThatTakesAges()); With the real behaviour of ConditionalAttribute, MethodThatTakesAges doesn’t get called – the entire call including argument evaluation is removed from the compiler. Of course the other point is that it depends on the compile-time preprocessor symbols at the compile … Read more

#ifdef #ifndef in Java

private static final boolean enableFast = false; // … if (enableFast) { // This is removed at compile time } Conditionals like that shown above are evaluated at compile time. If instead you use this private static final boolean enableFast = “true”.equals(System.getProperty(“fast”)); Then any conditions dependent on enableFast will be evaluated by the JIT compiler. … Read more

What is the difference between Release and Debug modes in Visual Studio? [duplicate]

Debug and Release are just labels for different solution configurations. You can add others if you want. A project I once worked on had one called “Debug Internal” which was used to turn on the in-house editing features of the application. You can see this if you go to Configuration Manager… (it’s on the Build … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)