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