-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Mapping_Converter_SetConverter__2
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Adds a custom converter from TFrom to TTo types.
Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0
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
- expr
- Type: System.Linq.Expressions.Expression(Func(TFrom, TTo))
Convert expression.
- TFrom
- Type to convert from.
- TTo
- Type to convert to.