ternary operartors c# code example
Example 1: c# ternary condition
condition ? consequent : alternative
Example 2: c# ternary operation
condition ? consequent : alternative
condition ? consequent : alternative
condition ? consequent : alternative