C# Ternary Expression
This lesson discusses ternary operators in detail including compound ternary expressions using examples
We'll cover the following
Ternay Operator
This is a short way of representing conditional statement in C#.
Ternary operator has one boolean expression, and returns one of two values depending on the value of a Boolean expression.
Syntax
Here’s the syntax
Get hands-on with 1400+ tech skills courses.