<PackageReference Include="System.Linq.Expressions" Version="4.0.11-beta-23409" />

ConditionalExpression

Represents an expression that has a conditional operator.
public Expression IfFalse { get; }

Gets the expression to execute if the test evaluates to false.

public Expression IfTrue { get; }

Gets the expression to execute if the test evaluates to true.

public Expression Test { get; }

Gets the test of the conditional operation.

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression