**?: operator - the ternary conditional operator | Microsoft Learn**
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/conditional-operator

OverviewConditional ref expressionConditional operator and an if statementOperator overloadabilityC# language specificationSee alsoA ref local or ref readonly local variable can be assigned conditionally with a conditional ref expr…The syntax for a conditional ref expression is as follows:Like the original conditional operator, a conditional ref expression evaluates only one of the two …In a conditional ref expression, the type of consequent and alternative must be the same. Conditional ref expressions aren't target-typed. A ref local or ref readonly local variable can be assigned conditionally with a conditional ref expr…The syntax for a conditional ref expression is as follows: Like the original conditional operator, a conditional ref expression evaluates only one of the two …In a conditional ref expression, the type of consequent and alternative must be the same. Conditional ref expressions aren't target-typed.

A ref local or ref readonly local variable can be assigned conditionally with a conditional ref expr…The syntax for a conditional ref expression is as follows:

Like the original conditional operator, a conditional ref expression evaluates only one of the two …In a conditional ref expression, the type of consequent and alternative must be the same. Conditional ref expressions aren't target-typed.

**DA:** 69 **PA:** 83 **MOZ Rank:** 56