Table of Contents

Method TryGetTypeMap

Namespace
Mapperion.Model
Assembly
Mapperion.dll

TryGetTypeMap(TypeMapKey, out TypeMapDefinition?)

Looks up the map for a type pair.

public bool TryGetTypeMap(TypeMapKey key, out TypeMapDefinition? definition)

Parameters

key TypeMapKey

The type pair.

definition TypeMapDefinition

The definition when one exists.

Returns

bool

true when a map is configured for the pair.

TryGetTypeMap(Type, Type, out TypeMapDefinition?)

Looks up the map for a type pair.

public bool TryGetTypeMap(Type sourceType, Type destinationType, out TypeMapDefinition? definition)

Parameters

sourceType Type

The source type.

destinationType Type

The destination type.

definition TypeMapDefinition

The definition when one exists.

Returns

bool

true when a map is configured for the pair.