Show / Hide Table of Contents

    Interface IExpressionPromoter

    Expression promoter is used to promote object or value types to their destination type when an automatic promotion is available such as: int to int?

    Namespace: System.Linq.Dynamic.Core.Parser
    Assembly: System.Linq.Dynamic.Core.dll
    Syntax
    public interface IExpressionPromoter

    Methods

    | Improve this Doc View Source

    Promote(Expression, Type, Boolean, Boolean)

    Promote an expression

    Declaration
    Expression Promote(Expression expr, Type type, bool exact, bool convertExpr)
    Parameters
    Type Name Description
    Expression expr

    Source expression

    Type type

    Destionation data type to promote

    Boolean exact

    If the match must be exact

    Boolean convertExpr

    Convert expression

    Returns
    Type Description
    Expression

    The promoted Expression

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX