Type mismatch between expression and expression on each side of the “:” in a ternary operator

The expressions on either side of the “:” in a conditional operator aren’t the same type. Expression1 and expression2 can be any type, object, or value type, but they must be compatible types with one other.