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

GetUserDefinedCoercion() private static method

private static GetUserDefinedCoercion ( ExpressionType coercionType, Expression expression, Type convertToType ) : UnaryExpression
coercionType ExpressionType
expression Expression
convertToType Type
return UnaryExpression
        private static UnaryExpression GetUserDefinedCoercion(ExpressionType coercionType, Expression expression, Type convertToType)
        {
            MethodInfo method = TypeUtils.GetUserDefinedCoercionMethod(expression.Type, convertToType);
            if (method != null)
            {
                return new UnaryExpression(coercionType, expression, convertToType, method);
            }
            else
            {
                return null;
            }
        }
Expression