Browse by Tags

Tagged Content List
  • Blog Post: 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...
  • Blog Post: 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...
Page 1 of 1 (2 items)