Class ExpressionPromoter
ExpressionPromoter
Inheritance
System.Object
ExpressionPromoter
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Linq.Dynamic.Core.Parser
Assembly: System.Linq.Dynamic.Core.dll
Syntax
public class ExpressionPromoter : IExpressionPromoter
Constructors
| Improve this Doc View SourceExpressionPromoter(ParsingConfig)
Initializes a new instance of the ExpressionPromoter class.
Declaration
public ExpressionPromoter(ParsingConfig config)
Parameters
Type | Name | Description |
---|---|---|
ParsingConfig | config | The ParsingConfig. |
Methods
| Improve this Doc View SourcePromote(Expression, Type, Boolean, Boolean)
Promote an expression
Declaration
public virtual Expression Promote(Expression expr, Type type, bool exact, bool convertExpr)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expr | Source expression |
System.Type | type | Destination data type to promote |
System.Boolean | exact | If the match must be exact |
System.Boolean | convertExpr | Convert expression |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | The promoted System.Linq.Expressions.Expression or null. |