ternary operator csharp
Code Example - ternary operator csharp
conditional-expression:
conditional-or-expression
conditional-or-expression ? expression : expression
csharp if statement one line
someValue = condition ? newValue : someValue;
csharp inline if
(condition ? [true value] : [false value])
int x = a ? b : c;
csharp ternary operator
is this condition true ? yes : no
ternary operator in csharp
ternary