Skip to content

M_CodeJam_Mapping_MappingSchema_TryGetConvertExpression

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

MappingSchema.TryGetConvertExpression Method

Returns an expression that converts a value of type TFrom to TTo or null.

Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

protected virtual LambdaExpression TryGetConvertExpression(
	Type from,
	Type to
)

VB

Protected Overridable Function TryGetConvertExpression ( 
	from As Type,
	to As Type
) As LambdaExpression

F#

abstract TryGetConvertExpression : 
        from : Type * 
        to : Type -> LambdaExpression 
override TryGetConvertExpression : 
        from : Type * 
        to : Type -> LambdaExpression 

Parameters

 

from
Type: System.Type
Type to convert from.
to
Type: System.Type
Type to convert to.

Return Value

Type: LambdaExpression
Convert expression.

See Also

Reference

MappingSchema Class
CodeJam.Mapping Namespace

Clone this wiki locally