Beispiel #1
0
        public TargetMapperBuilder(IDynamicAssembly assembly)
        {
            Assembly = assembly;

            _classMapperBuilder           = new ClassMapperBuilder(this);
            _collectionMapperBuilder      = new CollectionMapperBuilder(this);
            _convertibleTypeMapperBuilder = new ConvertibleTypeMapperBuilder(this);
            _customTypeMapperBuilder      = new CustomTypeMapperBuilder(this);
        }
Beispiel #2
0
        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;
        }