1 type derived from ConditionalExpression
System.Linq.Expressions (1)
1 instantiation of ConditionalExpression
System.Linq.Expressions (1)
65 references to ConditionalExpression
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.Extensions.DependencyInjection (2)
netstandard (1)
System.Core (1)
System.Linq.Expressions (54)
System\Linq\Expressions\ConditionalExpression.cs (41)
22internal static ConditionalExpression Make(Expression test, Expression ifTrue, Expression ifFalse, Type type)
89public ConditionalExpression Update(Expression test, Expression ifTrue, Expression ifFalse)
126/// Creates a <see cref="ConditionalExpression"/>.
128/// <param name="test">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.Test"/> property equal to.</param>
129/// <param name="ifTrue">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfTrue"/> property equal to.</param>
130/// <param name="ifFalse">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfFalse"/> property equal to.</param>
131/// <returns>A <see cref="ConditionalExpression"/> that has the <see cref="NodeType"/> property equal to
132/// <see cref="ExpressionType.Conditional"/> and the <see cref="ConditionalExpression.Test"/>, <see cref="ConditionalExpression.IfTrue"/>,
133/// and <see cref="ConditionalExpression.IfFalse"/> properties set to the specified values.</returns>
134public static ConditionalExpression Condition(Expression test, Expression ifTrue, Expression ifFalse)
149return ConditionalExpression.Make(test, ifTrue, ifFalse, ifTrue.Type);
153/// Creates a <see cref="ConditionalExpression"/>.
155/// <param name="test">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.Test"/> property equal to.</param>
156/// <param name="ifTrue">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfTrue"/> property equal to.</param>
157/// <param name="ifFalse">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfFalse"/> property equal to.</param>
159/// <returns>A <see cref="ConditionalExpression"/> that has the <see cref="NodeType"/> property equal to
160/// <see cref="ExpressionType.Conditional"/> and the <see cref="ConditionalExpression.Test"/>, <see cref="ConditionalExpression.IfTrue"/>,
161/// and <see cref="ConditionalExpression.IfFalse"/> properties set to the specified values.</returns>
165public static ConditionalExpression Condition(Expression test, Expression ifTrue, Expression ifFalse, Type type)
186return ConditionalExpression.Make(test, ifTrue, ifFalse, type);
190/// Creates a <see cref="ConditionalExpression"/>.
192/// <param name="test">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.Test"/> property equal to.</param>
193/// <param name="ifTrue">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfTrue"/> property equal to.</param>
194/// <returns>A <see cref="ConditionalExpression"/> that has the <see cref="NodeType"/> property equal to
195/// <see cref="ExpressionType.Conditional"/> and the <see cref="ConditionalExpression.Test"/>, <see cref="ConditionalExpression.IfTrue"/>,
196/// properties set to the specified values. The <see cref="ConditionalExpression.IfFalse"/> property is set to default expression and
197/// the type of the resulting <see cref="ConditionalExpression"/> returned by this method is <see cref="Void"/>.</returns>
198public static ConditionalExpression IfThen(Expression test, Expression ifTrue)
204/// Creates a <see cref="ConditionalExpression"/>.
206/// <param name="test">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.Test"/> property equal to.</param>
207/// <param name="ifTrue">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfTrue"/> property equal to.</param>
208/// <param name="ifFalse">An <see cref="Expression"/> to set the <see cref="ConditionalExpression.IfFalse"/> property equal to.</param>
209/// <returns>A <see cref="ConditionalExpression"/> that has the <see cref="NodeType"/> property equal to
210/// <see cref="ExpressionType.Conditional"/> and the <see cref="ConditionalExpression.Test"/>, <see cref="ConditionalExpression.IfTrue"/>,
211/// and <see cref="ConditionalExpression.IfFalse"/> properties set to the specified values. The type of the resulting <see cref="ConditionalExpression"/>
213public static ConditionalExpression IfThenElse(Expression test, Expression ifTrue, Expression ifFalse)
System.Linq.Queryable (1)