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 IExpressionPromoterMethods
| Improve this Doc View SourcePromote(Expression, Type, Boolean, Boolean)
Promote an expression
Declaration
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. |