10 references to ValidateType
System.Linq.Expressions (10)
System\Dynamic\Utils\ExpressionUtils.cs (1)
163TypeUtils.ValidateType(pType, methodParamName, allowByRef: true, allowPointer: true);
System\Dynamic\Utils\TypeUtils.cs (1)
930public static void ValidateType(Type type, string? paramName) => ValidateType(type, paramName, false, false);
System\Linq\Expressions\BinaryExpression.cs (2)
591TypeUtils.ValidateType(left.Type, nameof(left), allowByRef: true, allowPointer: true); 592TypeUtils.ValidateType(right.Type, nameof(right), allowByRef: true, allowPointer: true);
System\Linq\Expressions\DynamicExpression.cs (1)
1278TypeUtils.ValidateType(type, nameof(type), allowByRef: true, allowPointer: true);
System\Linq\Expressions\LambdaExpression.cs (1)
924TypeUtils.ValidateType(delegateType, nameof(delegateType), allowByRef: true, allowPointer: true);
System\Linq\Expressions\MemberMemberBinding.cs (1)
132TypeUtils.ValidateType(decType, null, allowByRef: true, allowPointer: true);
System\Linq\Expressions\NewExpression.cs (2)
146TypeUtils.ValidateType(constructor.DeclaringType!, nameof(constructor), allowByRef: true, allowPointer: true); 171TypeUtils.ValidateType(constructor.DeclaringType!, nameof(constructor), allowByRef: true, allowPointer: true);
System\Linq\Expressions\ParameterExpression.cs (1)
203TypeUtils.ValidateType(type, nameof(type), allowByRef, allowPointer: false);