System.Linq.Expressions.Expression.ValidateParamswithOperandsOrThrow C# (CSharp) Method

ValidateParamswithOperandsOrThrow() private static method

private static ValidateParamswithOperandsOrThrow ( Type paramType, Type operandType, ExpressionType exprType, string name ) : void
paramType Type
operandType Type
exprType ExpressionType
name string
return void
        private static void ValidateParamswithOperandsOrThrow(Type paramType, Type operandType, ExpressionType exprType, string name)
        {
            if (paramType.IsNullableType() && !operandType.IsNullableType())
            {
                throw Error.OperandTypesDoNotMatchParameters(exprType, name);
            }
        }
Expression