Skip to content

M_CodeJam_Mapping_MappingSchema_SetConverter__2

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

MappingSchema.SetConverter(TFrom, TTo) Method

Adds a function 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 SetConverter<TFrom, TTo>(
	Func<TFrom, TTo> func
)

VB

Public Sub SetConverter(Of TFrom, TTo) ( 
	func As Func(Of TFrom, TTo)
)

F#

member SetConverter : 
        func : Func<'TFrom, 'TTo> -> unit 

Parameters

 

func
Type: System.Func(TFrom, TTo)
Convert function.

Type Parameters

 

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

See Also

Reference

MappingSchema Class
CodeJam.Mapping Namespace

Clone this wiki locally