Constructor MapperModel
MapperModel(MapperOptions, IEnumerable<TypeMapDefinition>)
Creates a model from global options and a set of type maps.
public MapperModel(MapperOptions options, IEnumerable<TypeMapDefinition> typeMaps)
Parameters
optionsMapperOptionsThe global options.
typeMapsIEnumerable<TypeMapDefinition>The type maps. Order is preserved for diagnostics.
Exceptions
- ArgumentNullException
Either argument is null.
- ArgumentException
Two definitions describe the same type pair.