Ternary love
foreach (Operator o in operators)
{
Console.WriteLine(
o.Name +
o.Equals(ternaryOperator) ?
" is AWESOME!" :
" is alright, I guess..."
);
}
Gotta love it.
This entry was posted on Friday, September 11th, 2009 at 12:10 pm and is filed under Code. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
Tom is a 25 year-old software engineer currently based in Seattle, Washington. This is his personal blog, and views do not reflect those of his employer. Click