Skip to content

M_CodeJam_Mapping_Converter_SetConverter__2

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

Converter.SetConverter(TFrom, TTo) Method

Adds a custom converter from TFrom to TTo types.

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

Syntax

C#

public static void SetConverter<TFrom, TTo>(
	Expression<Func<TFrom, TTo>> expr
)

VB

Public Shared Sub SetConverter(Of TFrom, TTo) ( 
	expr As Expression(Of Func(Of TFrom, TTo))
)

F#

static member SetConverter : 
        expr : Expression<Func<'TFrom, 'TTo>> -> unit 

Parameters

 

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

Converter Class
CodeJam.Mapping Namespace

Clone this wiki locally