We're updating the issue view to help you get more done. 

Support the conditional expressions with type in ExpressionTreeVisitor.VisitConditionalExpression

Description

Currently, ExpressionTreeVisitor.VisitConditionalExpression triggers an ArgumentException when encountering a ConditionalExpression with non-matching IfTrue and IfFalse branches. .NET 4.0 supports such expressions via a new Expression.Condition factory method that allows for specifying a common base type for the two branches. Change ExpressionTreeVisitor.VisitConditionalExpression to use this overload with .NET 4.

Status

Assignee

Fabian Schmied

Reporter

Fabian Schmied

Labels

None

Time tracking

2h

Components

Fix versions

Priority

Normal
Configure