Table of Contents

Method ForCtorParam

Namespace
Mapperion
Assembly
Mapperion.dll

ForCtorParam(string, Action<ICtorParamConfigurationExpression<TSource>>)

Configures one parameter of the destination constructor. Parameter names are matched ignoring case, because C# names parameters in camelCase and properties in PascalCase.

IMappingExpression<TSource, TDestination> ForCtorParam(string constructorParameterName, Action<ICtorParamConfigurationExpression<TSource>> parameterOptions)

Parameters

constructorParameterName string

The parameter name, as declared.

parameterOptions Action<ICtorParamConfigurationExpression<TSource>>

The configuration applied to that parameter.

Returns

IMappingExpression<TSource, TDestination>

This expression, for chaining.

Exceptions

ArgumentNullException

Either argument is null.