45 references to AreReferenceAssignable
System.Linq.Expressions (45)
System\Dynamic\DynamicMetaObjectBinder.cs (2)
68
!TypeUtils.
AreReferenceAssignable
(returnLabel.Type, expectedResult))
95
!TypeUtils.
AreReferenceAssignable
(expectedResult, body.Type))
System\Dynamic\Utils\ExpressionUtils.cs (1)
164
if (!TypeUtils.
AreReferenceAssignable
(pType, arguments.Type))
System\Dynamic\Utils\TypeExtensions.cs (1)
56
if (!TypeUtils.
AreReferenceAssignable
(ps[i].ParameterType, argTypes[i]))
System\Dynamic\Utils\TypeUtils.cs (9)
242
if (
AreReferenceAssignable
(targetType, instanceType))
249
if (
AreReferenceAssignable
(targetType, typeof(object)))
254
if (
AreReferenceAssignable
(targetType, typeof(ValueType)))
259
if (instanceType.IsEnum &&
AreReferenceAssignable
(targetType, typeof(Enum)))
277
if (
AreReferenceAssignable
(targetType, interfaceType))
633
return left.IsInterface || right.IsInterface ||
AreReferenceAssignable
(left, right)
634
||
AreReferenceAssignable
(right, left);
655
if (
AreReferenceAssignable
(left, right) ||
AreReferenceAssignable
(right, left))
System\Linq\Expressions\BinaryExpression.cs (4)
593
if (!TypeUtils.
AreReferenceAssignable
(left.Type, right.Type))
668
if (!TypeUtils.
AreReferenceAssignable
(left.Type, b.Type))
701
if (!TypeUtils.
AreReferenceAssignable
(left.Type, b.Type))
750
return TypeUtils.
AreReferenceAssignable
(pType, argType);
System\Linq\Expressions\BlockExpression.cs (1)
1045
if (!TypeUtils.
AreReferenceAssignable
(type, last.Type))
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
219
Debug.Assert(TypeUtils.
AreReferenceAssignable
(type, node.Type));
System\Linq\Expressions\Compiler\LambdaCompiler.Binary.cs (2)
118
Debug.Assert(TypeUtils.
AreReferenceAssignable
(p1.Type, b.Left.Type.GetNonNullableType()));
119
Debug.Assert(TypeUtils.
AreReferenceAssignable
(p2.Type, b.Right.Type.GetNonNullableType()));
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (1)
258
_labelInfo.Add(label, new LabelInfo(_ilg, label, TypeUtils.
AreReferenceAssignable
(lambda.ReturnType, label.Type)));
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
136
Debug.Assert(TypeUtils.
AreReferenceAssignable
(type, node.Type));
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (1)
573
if (TypeUtils.
AreReferenceAssignable
(convert.Type, convert.Operand.Type))
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
222
Debug.Assert(TypeUtils.
AreReferenceAssignable
(testValue.Type, test.Type));
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
151
TypeUtils.
AreReferenceAssignable
(node.Type, result.Node.Type),
System\Linq\Expressions\ConditionalExpression.cs (2)
179
if (!TypeUtils.
AreReferenceAssignable
(type, ifTrue.Type) ||
180
!TypeUtils.
AreReferenceAssignable
(type, ifFalse.Type))
System\Linq\Expressions\Expression.cs (1)
192
if (!TypeUtils.
AreReferenceAssignable
(Type, newNode.Type)) throw Error.ReducedNotCompatible();
System\Linq\Expressions\GotoExpression.cs (1)
363
if (!TypeUtils.
AreReferenceAssignable
(expectedType, value.Type))
System\Linq\Expressions\IndexExpression.cs (2)
331
if (!TypeUtils.
AreReferenceAssignable
(parms[i].ParameterType, args[i].Type))
508
if (!TypeUtils.
AreReferenceAssignable
(pType, arg.Type))
System\Linq\Expressions\LambdaExpression.cs (2)
960
if (!TypeUtils.
AreReferenceAssignable
(pex.Type, pType))
974
if (mi.ReturnType != typeof(void) && !TypeUtils.
AreReferenceAssignable
(mi.ReturnType, body.Type))
System\Linq\Expressions\MemberExpression.cs (1)
139
if (!TypeUtils.
AreReferenceAssignable
(field.DeclaringType!, expression.Type))
System\Linq\Expressions\MethodCallExpression.cs (1)
1362
if (!TypeUtils.
AreReferenceAssignable
(pType, argType) &&
System\Linq\Expressions\NewArrayExpression.cs (1)
153
if (!TypeUtils.
AreReferenceAssignable
(type, expr.Type))
System\Linq\Expressions\NewExpression.cs (2)
247
if (!TypeUtils.
AreReferenceAssignable
(memberType, arg.Type))
260
if (!TypeUtils.
AreReferenceAssignable
(pType, arg.Type))
System\Linq\Expressions\SwitchExpression.cs (1)
300
if (!TypeUtils.
AreReferenceAssignable
(resultType, @case.Type))
System\Linq\Expressions\TryExpression.cs (2)
190
if (!TypeUtils.
AreReferenceAssignable
(type, tryBody.Type))
196
if (!TypeUtils.
AreReferenceAssignable
(type, cb.Body.Type))
System\Linq\Expressions\TypeBinaryExpression.cs (1)
77
Debug.Assert(TypeUtils.
AreReferenceAssignable
(typeof(object), Expression.Type), "Expecting reference types only after this point.");
System\Linq\Expressions\UnaryExpression.cs (1)
1073
if (!TypeUtils.
AreReferenceAssignable
(expression.Type, result.Type))
System\Runtime\CompilerServices\CallSite.cs (1)
686
if (TypeUtils.
AreReferenceAssignable
(type, arg.Type))