What’s the difference between ternary and tertiary?

The conditional operator ( condition ? consequence : alternative ) is often referred to as both the “ternary operator” and the “tertiary operator”. What’s the difference? “Ternary” means “having three parts”. Operators in C# can be unary, binary or ternary – they take one, two or three operands.  “Tertiary” means “third in order”. Compiler flaws…

26

What's the difference between conditional compilation and the conditional attribute?

User: Why does this program not compile correctly in the release build? class Program { #if DEBUG     static int testCounter = 0; #endif     static void Main(string[] args)     {         SomeTestMethod(testCounter++);     }     [Conditional(“DEBUG”)]     static void SomeTestMethod(int t) { } } Eric: This fails to compile in the retail build because testCounter cannot…

10