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