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

GetUserDefinedCoercionOrThrow() private static method

private static GetUserDefinedCoercionOrThrow ( ExpressionType coercionType, Expression expression, Type convertToType ) : UnaryExpression
coercionType ExpressionType
expression Expression
convertToType Type
return UnaryExpression
        private static UnaryExpression GetUserDefinedCoercionOrThrow(ExpressionType coercionType, Expression expression, Type convertToType)
        {
            UnaryExpression u = GetUserDefinedCoercion(coercionType, expression, convertToType);
            if (u != null)
            {
                return u;
            }
            throw Error.CoercionOperatorNotDefined(expression.Type, convertToType);
        }
Expression