1 write to Operand
System.Linq.Expressions (1)
System\Linq\Expressions\UnaryExpression.cs (1)
20Operand = expression;
124 references to Operand
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
104accessorBody = unaryExpression.Operand;
Microsoft.AspNetCore.JsonPatch (1)
JsonPatchDocumentOfT.cs (1)
694listOfSegments.AddRange(GetPathSegments(((UnaryExpression)expr).Operand));
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ModelBindingHelper.cs (1)
292expression = ((UnaryExpression)expression).Operand;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ModelStateDictionaryExtensions.cs (2)
157unaryExpression.Operand, 167expression.Operand?.NodeType == ExpressionType.MemberAccess &&
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
317Visit(node.Operand)
Microsoft.ML.Core (12)
Utilities\FuncInstanceMethodInfo1`2.cs (2)
58if (!(expression is { Body: UnaryExpression { Operand: MethodCallExpression methodCallExpression } })) 84Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is MethodCallExpression, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`3.cs (2)
59if (!(expression is { Body: UnaryExpression { Operand: MethodCallExpression methodCallExpression } })) 85Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is MethodCallExpression, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`4.cs (2)
60if (!(expression is { Body: UnaryExpression { Operand: MethodCallExpression methodCallExpression } })) 86Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is MethodCallExpression, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo2`4.cs (2)
60if (!(expression is { Body: UnaryExpression { Operand: MethodCallExpression methodCallExpression } })) 86Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is MethodCallExpression, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`3.cs (2)
59if (!(expression is { Body: UnaryExpression { Operand: MethodCallExpression methodCallExpression } })) 85Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is MethodCallExpression, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`4.cs (2)
60if (!(expression is { Body: UnaryExpression { Operand: MethodCallExpression methodCallExpression } })) 86Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is MethodCallExpression, nameof(expression), "Unexpected expression form");
System.Linq.Expressions (104)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
213EmitExpression(node.Operand);
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (3)
503EmitExpressionAndBranch(!branch, node.Operand, label); 573if (TypeUtils.AreReferenceAssignable(convert.Type, convert.Operand.Type)) 575return convert.Operand;
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (20)
23EmitConstant(quote.Operand, quote.Type); 46if (expr.Operand == null) 54EmitExpression(expr.Operand); 72else if (node.NodeType == ExpressionType.NegateChecked && node.Operand.Type.IsInteger()) 75Debug.Assert(type == node.Operand.Type); 80EmitExpression(node.Operand); 109EmitExpression(node.Operand); 115EmitExpression(node.Operand); 116EmitUnaryOperator(node.NodeType, node.Operand.Type, node.Type); 277EmitExpression(node.Operand); 306if (node.IsLifted && (!node.Type.IsValueType || !node.Operand.Type.IsValueType)) 316UnaryExpression operand = Expression.Convert(node.Operand, paramType); 332EmitExpressionAsVoid(node.Operand, flags); 336if (TypeUtils.AreEquivalent(node.Operand.Type, node.Type)) 338EmitExpression(node.Operand, flags); 343EmitExpression(node.Operand); 344_ilg.EmitConvertToType(node.Operand.Type, node.Type, node.NodeType == ExpressionType.ConvertChecked, this); 354ParameterExpression v = Expression.Variable(node.Operand.Type.GetNonNullableType(), name: null); 358EmitLift(node.NodeType, resultType, mc, new ParameterExpression[] { v }, new Expression[] { node.Operand }); 363EmitMethodCallExpression(Expression.Call(node.Method!, node.Operand), flags);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
584Result value = RewriteExpressionFreeTemps(node.Operand, Stack.Empty); 609Result expression = RewriteExpression(node.Operand, stack);
System\Linq\Expressions\Compiler\VariableBinder.cs (2)
75Visit(node.Operand); 80Visit(node.Operand);
System\Linq\Expressions\DebugViewWriter.cs (2)
910if (node.Operand == null) 942ParenthesizedVisit(node, node.Operand);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
489public Expression Operand => _node.Operand;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
629Visit(node.Operand);
System\Linq\Expressions\ExpressionVisitor.cs (5)
540return ValidateUnary(node, node.Update(Visit(node.Operand))); 649if (before.Operand != null && after.Operand != null) 651ValidateChildType(before.Operand.Type, after.Operand.Type, nameof(VisitUnary));
System\Linq\Expressions\Interpreter\LightCompiler.cs (23)
1045Expression operand = node.Operand; 1054Compile(node.Operand); 1058updater = CompileAddress(node.Operand, 0); 1064Compile(node.Operand); 1104CompileAsVoid(node.Operand); 1108Compile(node.Operand); 1109CompileConvertToType(node.Operand.Type, node.Type, node.NodeType == ExpressionType.ConvertChecked, node.IsLiftedToNull); 1221Compile(node.Operand); 1222_instructions.EmitNot(node.Operand.Type); 1245Compile(node.Operand); 1249Compile(node.Operand); 1253Compile(node.Operand); 1257Compile(node.Operand); 1261Compile(node.Operand); 1265Compile(node.Operand); 1279Compile(node.Operand); 1301Compile(node.Operand); 1936if (node.Operand == null) 1952Compile(node.Operand); 2773visitor.Visit(unary.Operand); 2783_instructions.Emit(new QuoteInstruction(unary.Operand, mapping.Count > 0 ? mapping : null)); 2890Compile(node.Operand); 2917Compile(node.Operand);
System\Linq\Expressions\InvocationExpression.cs (1)
117? (LambdaExpression)((UnaryExpression)Expression).Operand
System\Linq\Expressions\UnaryExpression.cs (43)
62bool operandIsNullable = Operand.Type.IsNullableType(); 66return (operandIsNullable && !TypeUtils.AreEquivalent(Method.GetParametersCached()[0].ParameterType, Operand.Type)) || 117switch (Operand.NodeType) 124Debug.Assert(Operand.NodeType == ExpressionType.Parameter); 158return Assign(Operand, FunctionalOp(Operand)); 165ParameterExpression temp = Parameter(Operand.Type, name: null); 169Assign(temp, Operand), 170Assign(Operand, FunctionalOp(temp)), 178var member = (MemberExpression)Operand; 239var index = (IndexExpression)Operand; 280/// <param name="operand">The <see cref="Operand"/> property of the result.</param> 284if (operand == Operand) 453/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 454/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Negate"/> and the <see cref="UnaryExpression.Operand"/> properties set to the specified value.</returns> 465/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 467/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Negate"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="UnaryExpression.Method"/> properties set to the specified value.</returns> 488/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 489/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.UnaryPlus"/> and the <see cref="UnaryExpression.Operand"/> property set to the specified value.</returns> 500/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 502/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.UnaryPlus"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="UnaryExpression.Method"/>property set to the specified value.</returns> 521/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.NegateChecked"/> and the <see cref="UnaryExpression.Operand"/> property set to the specified value.</returns> 522/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 531/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.NegateChecked"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="UnaryExpression.Method"/> properties set to the specified values.</returns> 532/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 555/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Not"/> and the <see cref="UnaryExpression.Operand"/> property set to the specified value.</returns> 556/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 566/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Not"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="UnaryExpression.Method"/> properties set to the specified values.</returns> 567/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 685/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.TypeAs"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="Expression.Type"/> properties set to the specified values.</returns> 686/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 723/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Convert"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="Expression.Type"/> properties set to the specified values.</returns> 724/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 735/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Convert"/> and the <see cref="UnaryExpression.Operand"/>, <see cref="Expression.Type"/>, and <see cref="UnaryExpression.Method"/> properties set to the specified values.</returns> 736/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 763/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ConvertChecked"/> and the <see cref="UnaryExpression.Operand"/> and <see cref="Expression.Type"/> properties set to the specified values.</returns> 764/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 775/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ConvertChecked"/> and the <see cref="UnaryExpression.Operand"/>, <see cref="Expression.Type"/>, and <see cref="UnaryExpression.Method"/> properties set to the specified values.</returns> 776/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 806/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ArrayLength"/> and the <see cref="UnaryExpression.Operand"/> property equal to <paramref name="array"/>.</returns> 807/// <param name="array">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param> 829/// <returns>A <see cref="UnaryExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Quote"/> and the <see cref="UnaryExpression.Operand"/> property set to the specified value.</returns> 830/// <param name="expression">An <see cref="Expression"/> to set the <see cref="UnaryExpression.Operand"/> property equal to.</param>
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
100expr = ((UnaryExpression)expr).Operand; 350arg = ((UnaryExpression)arg).Operand;