1 using System
.Linq
.Expressions
;
6 public static int Main ()
8 Expression
<Func
<bool, IA
>> e
= (arg
) => arg
? new B2 () : (IA
) new B1 ();
9 var cond
= (ConditionalExpression
) e
.Body
;
10 if (cond
.NodeType
!= ExpressionType
.Conditional
)
12 if (cond
.IfTrue
.NodeType
!= ExpressionType
.Convert
)
14 if (cond
.IfFalse
.NodeType
!= ExpressionType
.Convert
)