Burned by Ternary Operators
September 16, 2013 in C#First let me say that I’m not a fan of ternary operators. I try to avoid them because I feel that an explicit if/else is much more readable. I do use them on occasion and this seemed like the perfect place for them.
I ran into a interesting problem while trying to get a Linq where clause to work with ternary operators.