142 references to Assign
Microsoft.AspNetCore.Components.Endpoints (11)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (11)
47
Expression.
Assign
(succeeded, Expression.Constant(true)),
148
Expression.
Assign
(
162
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool))),
253
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
278
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
355
var propertyConverter = Expression.
Assign
(
409
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
455
var constructorParameterConverter = Expression.
Assign
(
512
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
554
Expression.
Assign
(foundValueParam, Expression.Constant(false)),
555
Expression.
Assign
(succeeded, Expression.Constant(true)),
Microsoft.AspNetCore.Http.Extensions (38)
RequestDelegateFactory.cs (25)
362
Expression.
Assign
(
469
: Expression.
Assign
(TargetExpr, Expression.Invoke(targetFactory, FilterContextHttpContextExpr)),
999
Expression.
Assign
(StatusCodeExpr, Expression.Constant(400))),
1016
Expression.
Assign
(StatusCodeExpr, Expression.Constant(400)),
1625
Expression.
Assign
(argumentExpression, initExpression));
1755
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
1773
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
1786
Expression.
Assign
(parameter.ParameterType.IsArray ? Expression.ArrayAccess(argument, index) : argument, Expression.Convert(parsedValue, targetParseType)),
1792
Expression.
Assign
(argument,
1807
Expression.
Assign
(argument, Expression.NewArrayBounds(parameter.ParameterType.GetElementType()!, Expression.ArrayLength(stringArrayExpr!))),
1809
Expression.
Assign
(index, Expression.Constant(0)),
1817
Expression.
Assign
(TempSourceStringExpr, Expression.ArrayIndex(stringArrayExpr!, index)),
1838
Expression.
Assign
(stringArrayExpr!, valueExpression),
1851
Expression.
Assign
(stringArrayExpr!, valueExpression),
1864
Expression.
Assign
(TempSourceStringExpr, valueExpression),
1875
Expression.
Assign
(TempSourceStringExpr, valueExpression),
1912
Expression.
Assign
(argument, valueExpression),
1915
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
1999
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2141
var initializeReaderExpr = Expression.
Assign
(
2149
var setMaxRecursionDepthExpr = Expression.
Assign
(
2200
Expression.
Assign
(formArgument, invokeMapMethodExpr)),
2204
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2303
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
2327
Expression.
Assign
(WasParamCheckFailureExpr, Expression.Constant(true)),
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (11)
47
Expression.
Assign
(succeeded, Expression.Constant(true)),
148
Expression.
Assign
(
162
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool))),
253
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
278
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))));
355
var propertyConverter = Expression.
Assign
(
409
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
455
var constructorParameterConverter = Expression.
Assign
(
512
Expression.
Assign
(succeeded, Expression.Constant(false, typeof(bool)))
554
Expression.
Assign
(foundValueParam, Expression.Constant(false)),
555
Expression.
Assign
(succeeded, Expression.Constant(true)),
src\Shared\ParameterBindingMethodCache.cs (2)
115
Expression.
Assign
(success, Expression.Call(_enumTryParseMethod, Expression.Constant(type), TempSourceStringExpr, enumAsObject)),
116
Expression.
Assign
(expression,
Microsoft.AspNetCore.Mvc.Abstractions (2)
src\Shared\ParameterBindingMethodCache.cs (2)
115
Expression.
Assign
(success, Expression.Call(_enumTryParseMethod, Expression.Constant(type), TempSourceStringExpr, enumAsObject)),
116
Expression.
Assign
(expression,
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\TryParseModelBinder.cs (2)
134
Expression.
Assign
(modelValue, Expression.Convert(parsedValue, modelValue.Type)),
135
Expression.
Assign
(BindingResultExpression, Expression.Call(SuccessBindingResultMethod, modelValue))),
Microsoft.AspNetCore.OpenApi (2)
src\Shared\ParameterBindingMethodCache.cs (2)
115
Expression.
Assign
(success, Expression.Call(_enumTryParseMethod, Expression.Constant(type), TempSourceStringExpr, enumAsObject)),
116
Expression.
Assign
(expression,
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
118
Expression.
Assign
(tempForIncrement, Expression.Convert(arg0.Expression, arg0.Value.GetType())),
120
Expression.
Assign
(arg0.Expression, Expression.Convert(tempForIncrement, arg0.Expression.Type)));
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
490
return Expression.
Assign
(
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (3)
22
Expression.
Assign
(ResolvedServices,
28
Expression.
Assign
(Sync,
245
BinaryExpression assignExpression = Expression.
Assign
(
Microsoft.VisualBasic.Core (11)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (11)
330
Expression.
Assign
(
341
Expression.
Assign
(result, fallback),
409
Expression.
Assign
(
419
Expression.
Assign
(result, fallback),
495
Expression.
Assign
(
506
Expression.
Assign
(result, fallback),
564
Expression.
Assign
(
575
Expression.
Assign
(result, fallback),
633
Expression.
Assign
(
644
Expression.
Assign
(result, fallback),
1311
writeback.Add(Expression.
Assign
(arg, Expression.ArrayIndex(array, Expression.Constant(i))))
System.Composition.Hosting (2)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (2)
50
blockExprs.Add(Expression.
Assign
(resultVar, Expression.New(parameterlessConstructor)));
60
var assign = Expression.
Assign
(
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
80
var assignTyped = Expression.
Assign
(typed, Expression.Convert(inst, partType.AsType()));
87
var assignment = Expression.
Assign
(
System.Linq.Expressions (59)
System\Dynamic\BindingRestrictions.cs (1)
321
Expression.
Assign
(
System\Dynamic\DynamicObject.cs (6)
471
Expression.
Assign
(
649
method != DynamicObject_TryBinaryOperation ? Expression.
Assign
(callArgs, Expression.NewObjectArrayInit(callArgsValue)) : Expression.
Assign
(callArgs, callArgsValue[0]),
709
Expression.
Assign
(callArgs, Expression.NewObjectArrayInit(callArgsValue)),
718
Expression.
Assign
(result, Expression.Convert(value, typeof(object)))
772
Expression.
Assign
(callArgs, Expression.NewObjectArrayInit(callArgsValue)),
System\Linq\Expressions\BinaryExpression.cs (11)
170
return Expression.
Assign
(Left, r);
193
Expression e1 = Expression.
Assign
(temp1, member.Expression);
204
e2 = Expression.
Assign
(temp2, e2);
207
Expression e3 = Expression.
Assign
(Expression.MakeMemberAccess(temp1, member.Member), temp2);
239
exprs.UncheckedAdd(Expression.
Assign
(tempObj, index.Object));
249
exprs.UncheckedAdd(Expression.
Assign
(tempArg, arg));
264
exprs.UncheckedAdd(Expression.
Assign
(tempValue, op));
267
exprs.UncheckedAdd(Expression.
Assign
(tempIndex, tempValue));
406
Assign
(left, Left),
415
Assign
(right, Right),
927
ExpressionType.Assign =>
Assign
(left, right),
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (4)
695
Expression.
Assign
(
734
Expression.
Assign
(switchValue, node.SwitchValue),
737
Expression.
Assign
(switchIndex, Utils.Constant(nullCase)),
741
Expression.
Assign
(switchIndex, Utils.Constant(-1))
System\Linq\Expressions\MemberInitExpression.cs (3)
75
block[0] =
Assign
(objVar, objExpression);
91
block[0] =
Assign
(listVar, listExpression);
107
MemberBindingType.Assignment => Expression.
Assign
(member, ((MemberAssignment)binding).Expression),
System\Linq\Expressions\TypeBinaryExpression.cs (2)
98
Expression.
Assign
(parameter, Expression),
120
Expression.
Assign
(temp, getType),
System\Linq\Expressions\UnaryExpression.cs (12)
158
return
Assign
(Operand, FunctionalOp(Operand));
169
Assign
(temp, Operand),
170
Assign
(Operand, FunctionalOp(temp)),
187
BinaryExpression initTemp1 =
Assign
(temp1, member.Expression);
200
Assign
(member, FunctionalOp(member))
216
Assign
(temp2, member),
217
Assign
(member, FunctionalOp(temp2)),
247
block[i] =
Assign
(temps[i], index.Object);
253
block[i] =
Assign
(temps[i], arg);
260
block[i] =
Assign
(temps[i], index);
263
block[i++] =
Assign
(index, FunctionalOp(lastTemp));
269
block[i++] =
Assign
(index, FunctionalOp(index));
System\Runtime\CompilerServices\CallSite.cs (20)
377
body.UncheckedAdd(Expression.
Assign
(@this, Expression.Convert(site, @this.Type)));
389
body.UncheckedAdd(Expression.
Assign
(originalRule, target));
403
Expression.
Assign
(
443
Expression.
Assign
(result!, invokeRule),
451
Expression getApplicableRuleAtIndex = Expression.
Assign
(rule, Expression.ArrayAccess(applicable, new TrueReadOnlyCollection<Expression>(index)));
466
Expression.
Assign
(
478
Expression.
Assign
(count, Expression.ArrayLength(applicable)),
479
Expression.
Assign
(index, Utils.Constant(0)),
490
Expression.
Assign
(
518
Expression.
Assign
(
527
Expression.
Assign
(
549
Expression.
Assign
(result!, invokeRule),
570
getRule = Expression.
Assign
(
575
body.UncheckedAdd(Expression.
Assign
(index, Utils.Constant(0)));
576
body.UncheckedAdd(Expression.
Assign
(count, Expression.ArrayLength(applicable)));
594
body.UncheckedAdd(Expression.
Assign
(rule, Expression.Constant(null, rule.Type)));
600
Expression.
Assign
(
606
Expression setOldTarget = Expression.
Assign
(
611
getRule = Expression.
Assign
(
613
Expression.
Assign
(
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
2137
var assignExpr = Expression.
Assign
(fieldExpr, valueParam);
System.ServiceModel.Primitives (6)
System\ServiceModel\Dispatcher\InvokerUtil.cs (6)
135
expressions.Add(Expression.
Assign
(variable, Expression.Convert(Expression.ArrayIndex(inputsParam, Expression.Constant(inputParameterCount)), variableType)));
155
expressions.Add(Expression.
Assign
(result, Expression.Convert(Expression.Call(castTargetParam, method, invocationParameters), typeof(object))));
159
expressions.Add(Expression.
Assign
(result, Expression.Call(castTargetParam, method, invocationParameters)));
165
expressions.Add(Expression.
Assign
(result, Expression.Constant(null, typeof(object))));
173
expressions.Add(Expression.
Assign
(
179
expressions.Add(Expression.
Assign
(