The conditional operator is a ternary operator that is part of the syntax for a basic conditional expression in several programming languages.
Just for curiosity/convenience: C# provides two cool conditional expression features I know of: string trimmed = (input == null) ? null : input.…
c# .net conditional-operator conditional-expressions