static private UnaryOperatorNotDefined ( object p0, object p1 ) : Exception | ||
p0 | object | |
p1 | object | |
return | Exception |
internal static Exception UnaryOperatorNotDefined(object p0, object p1)
{
return new InvalidOperationException(Strings.UnaryOperatorNotDefined(p0, p1));
}
/// <summary>
//CONFORMING private static UnaryExpression GetUserDefinedUnaryOperatorOrThrow(ExpressionType unaryType, string name, Expression operand) { UnaryExpression u = GetUserDefinedUnaryOperator(unaryType, name, operand); if (u != null) { ValidateParamswithOperandsOrThrow(u.Method.GetParametersCached()[0].ParameterType, operand.Type, unaryType, name); return(u); } throw Error.UnaryOperatorNotDefined(unaryType, operand.Type); }