1 type derived from ConditionalExpression
System.Linq.Expressions (1)
System\Linq\Expressions\ConditionalExpression.cs (1)
99internal class FullConditionalExpression : ConditionalExpression
1 instantiation of ConditionalExpression
System.Linq.Expressions (1)
System\Linq\Expressions\ConditionalExpression.cs (1)
30return new ConditionalExpression(test, ifTrue);
64 references to ConditionalExpression
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (1)
549private static ConditionalExpression CreatePrefixCheckForRecursiveTypes(ParameterExpression readerParam, ParameterExpression foundValueParam, ParameterExpression succeeded, LabelTarget end)
Microsoft.AspNetCore.Http.Extensions (4)
RequestDelegateFactory.cs (3)
993var checkWasParamCheckFailure = Expression.Condition( 1759var ifNotNullTryParse = !parameter.HasDefaultValue 2136var conditionalReturnBufferExpr = Expression.IfThen(
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (1)
549private static ConditionalExpression CreatePrefixCheckForRecursiveTypes(ParameterExpression readerParam, ParameterExpression foundValueParam, ParameterExpression succeeded, LabelTarget end)
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
213private ConditionalExpression BuildScopedExpression(ServiceCallSite callSite) 277ConditionalExpression finallyBody = Expression.IfThen(lockWasTaken, monitorExit);
netstandard (1)
netstandard.cs (1)
989[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ConditionalExpression))]
System.Core (1)
System.Core.cs (1)
127[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ConditionalExpression))]
System.Linq.Expressions (54)
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (2)
17ConditionalExpression node = (ConditionalExpression)expr;
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
333var node = (ConditionalExpression)expr; 345expr = ConditionalExpression.Make(test.Node, ifTrue.Node, ifFalse.Node, node.Type);
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\Expressions\DebugViewWriter.cs (1)
424protected internal override Expression VisitConditional(ConditionalExpression node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
71private readonly ConditionalExpression _node; 73public ConditionalExpressionProxy(ConditionalExpression node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
338protected internal override Expression VisitConditional(ConditionalExpression node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
225/// Visits the children of the <see cref="ConditionalExpression"/>. 230protected internal virtual Expression VisitConditional(ConditionalExpression node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
1475var node = (ConditionalExpression)expr;
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
378protected override Expression VisitConditional(ConditionalExpression c)