Watch C# Conditional Operator
- 2020
- 9 min
C# provides a conditional operator, which is sometimes called C# ternary or question operator. The C# conditional operator "?:" uses the Boolean value of an expression to determine which two other expressions must be calculated and returned as a result. Actually, this operator is a shorthand method of writing a simple single line if...else statement.