public TargetMapperBuilder(IDynamicAssembly assembly) { Assembly = assembly; _classMapperBuilder = new ClassMapperBuilder(this); _collectionMapperBuilder = new CollectionMapperBuilder(this); _convertibleTypeMapperBuilder = new ConvertibleTypeMapperBuilder(this); _customTypeMapperBuilder = new CustomTypeMapperBuilder(this); }
public TargetMapperBuilder(IDynamicAssembly assembly) { Assembly = assembly; var mapperCache = new MapperCache(); _classMapperBuilder = new ClassMapperBuilder(mapperCache, this); _collectionMapperBuilder = new CollectionMapperBuilder(mapperCache, this); _convertibleTypeMapperBuilder = new ConvertibleTypeMapperBuilder(this); _customTypeMapperBuilder = new CustomTypeMapperBuilder(this); NameMatching = DefaultNameMatching; }