- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Mapping_MappingSchema_SetConvertExpression
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        5 revisions
      
    Adds an expression that converts a value of type fromType to toType.
Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0
C#
public void SetConvertExpression(
	Type fromType,
	Type toType,
	LambdaExpression expr,
	bool addNullCheck = true
)VB
Public Sub SetConvertExpression ( 
	fromType As Type,
	toType As Type,
	expr As LambdaExpression,
	Optional addNullCheck As Boolean = true
)F#
member SetConvertExpression : 
        fromType : Type * 
        toType : Type * 
        expr : LambdaExpression * 
        ?addNullCheck : bool 
(* Defaults:
        let _addNullCheck = defaultArg addNullCheck true
*)
-> unit 
- fromType
- Type: System.Type
 Type to convert from.
- toType
- Type: System.Type
 Type to convert to.
- expr
- Type: System.Linq.Expressions.LambdaExpression
 Expression to set.
- addNullCheck (Optional)
- Type: System.Boolean
 If true, adds an expression to check null value.
MappingSchema Class
SetConvertExpression Overload
CodeJam.Mapping Namespace