Skip to content

M_CodeJam_Mapping_MappingSchema_SetConvertExpression__2_1

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

MappingSchema.SetConvertExpression(TFrom, TTo) Method (Expression(Func(TFrom, TTo)), Expression(Func(TFrom, TTo)))

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

Syntax

C#

public void SetConvertExpression<TFrom, TTo>(
	Expression<Func<TFrom, TTo>> checkNullExpr,
	Expression<Func<TFrom, TTo>> expr
)

VB

Public Sub SetConvertExpression(Of TFrom, TTo) ( 
	checkNullExpr As Expression(Of Func(Of TFrom, TTo)),
	expr As Expression(Of Func(Of TFrom, TTo))
)

F#

member SetConvertExpression : 
        checkNullExpr : Expression<Func<'TFrom, 'TTo>> * 
        expr : Expression<Func<'TFrom, 'TTo>> -> unit 

Parameters

 

checkNullExpr
Type: System.Linq.Expressions.Expression(Func(TFrom, TTo))
Null check expression.
expr
Type: System.Linq.Expressions.Expression(Func(TFrom, TTo))
Convert expression.

Type Parameters

 

TFrom
Type to convert from.
TTo
Type to convert to.

See Also

Reference

MappingSchema Class
SetConvertExpression Overload
CodeJam.Mapping Namespace

Clone this wiki locally