- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Mapping_MappingSchema_GetConvertExpression
        andrewvk edited this page Jun 23, 2016 
        ·
        5 revisions
      
    Returns an expression that converts a value of type from to to.
Namespace: CodeJam.Mapping
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public LambdaExpression GetConvertExpression(
	Type from,
	Type to,
	bool checkNull = true,
	bool createDefault = true
)VB
Public Function GetConvertExpression ( 
	from As Type,
	to As Type,
	Optional checkNull As Boolean = true,
	Optional createDefault As Boolean = true
) As LambdaExpressionF#
member GetConvertExpression : 
        from : Type * 
        to : Type * 
        ?checkNull : bool * 
        ?createDefault : bool 
(* Defaults:
        let _checkNull = defaultArg checkNull true
        let _createDefault = defaultArg createDefault true
*)
-> LambdaExpression 
- from
- Type: System.Type
 Type to convert from.
- to
- Type: System.Type
 Type to convert to.
- checkNull (Optional)
- Type: System.Boolean
 If true, created expression checks input value for null.
- createDefault (Optional)
- Type: System.Boolean
 If true, new expression is created.
Type: LambdaExpression
Convert expression.
MappingSchema Class
GetConvertExpression Overload
CodeJam.Mapping Namespace