ternary operator string to c# code example
Example 1: c# ternary operator
is this condition true ? yes : no
Example 2: c# ternary operation
condition ? consequent : alternative
is this condition true ? yes : no
condition ? consequent : alternative