c# short else if code example
Example 1: c# ternary operator
is this condition true ? yes : no
Example 2: c# ternary condition
condition ? consequent : alternative
is this condition true ? yes : no
condition ? consequent : alternative