Table of Contents

Method Initialize

Namespace
Mapperion
Assembly
Mapperion.dll

Initialize(IMapper)

Installs the mapper every call to Instance will return.

public static void Initialize(IMapper mapper)

Parameters

mapper IMapper

The mapper to install.

Exceptions

ArgumentNullException

mapper is null.

InvalidOperationException

A mapper is already installed. Installing a second one halfway through a process would change what earlier call sites resolve to, so it has to be deliberate: call Reset() first.