The conditional operator (? and :) is also called ternary operator as it takes three arguments. Their general form is, (expression 1 ? expression 2 : expression 3) What this expression says is: “if ...
C# Tips -1 Null-Coalescing Operator (??) vs Ternary Conditional Operator (?:) (Application in the same Context) Approach 1: Null-Coalescing Operator fk_emp_id = departmentDto?.employeeId ?? null; ...