Ternary love

foreach (Operator o in operators)
{
    Console.WriteLine(
        o.Name +
        o.Equals(ternaryOperator) ?
            " is AWESOME!" :
            " is alright, I guess..."
    );
}

Gotta love it.

Leave a Reply