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
constructorParameterNamestringThe parameter name, as declared.
parameterOptionsAction<ICtorParamConfigurationExpression<TSource>>The configuration applied to that parameter.
Returns
- IMappingExpression<TSource, TDestination>
This expression, for chaining.
Exceptions
- ArgumentNullException
Either argument is null.