6 [DebuggerTypeProxy(typeof(ConditionalExpressionProxy))]
7 [global::__DynamicallyInvokable]
16 [global::__DynamicallyInvokable]
19 [global::__DynamicallyInvokable]
28 [global::__DynamicallyInvokable]
31 [global::__DynamicallyInvokable]
40 [global::__DynamicallyInvokable]
43 [global::__DynamicallyInvokable]
52 [global::__DynamicallyInvokable]
55 [global::__DynamicallyInvokable]
64 [global::__DynamicallyInvokable]
67 [global::__DynamicallyInvokable]
80 internal static ConditionalExpression Make(Expression test, Expression ifTrue, Expression ifFalse,
Type type)
82 if (ifTrue.Type != type || ifFalse.Type != type)
84 return new FullConditionalExpressionWithType(test, ifTrue, ifFalse, type);
86 if (ifFalse is DefaultExpression && ifFalse.Type == typeof(
void))
88 return new ConditionalExpression(test, ifTrue);
90 return new FullConditionalExpression(test, ifTrue, ifFalse);
93 internal virtual Expression GetFalse()
95 return Expression.Empty();
101 [global::__DynamicallyInvokable]
112 [global::__DynamicallyInvokable]
Expression Test
Gets the test of the conditional operation.
Provides the base class from which the classes that represent expression tree nodes are derived....
internal override Expression Accept(ExpressionVisitor visitor)
Dispatches to the specific visit method for this node type. For example, T:System....
sealed override ExpressionType NodeType
Returns the node type of this expression. Extension nodes should return F:System.Linq....
ConditionalExpression Update(Expression test, Expression ifTrue, Expression ifFalse)
Creates a new expression that is like this one, but using the supplied children. If all of the childr...
Represents type declarations: class types, interface types, array types, value types,...
Expression IfFalse
Gets the expression to execute if the test evaluates to false.
virtual internal Expression VisitConditional(ConditionalExpression node)
Visits the children of the T:System.Linq.Expressions.ConditionalExpression.
ExpressionType
Describes the node types for the nodes of an expression tree.
Expression IfTrue
Gets the expression to execute if the test evaluates to true.
Represents an expression that has a conditional operator.
Represents a visitor or rewriter for expression trees.