static TinyMapper()
        {
            IDynamicAssembly assembly = DynamicAssemblyBuilder.Get();

            _targetMapperBuilder = new TargetMapperBuilder(assembly);
            _config = new TinyMapperConfig(_targetMapperBuilder);
        }
Exemple #2
0
        public TinyMapper(IEnumerable <IObjectMapperBuilder> builders)
        {
            this._lock = new object();
            _mappers   = new Dictionary <TypePair, Mapper>();
            IDynamicAssembly assembly = DynamicAssemblyBuilder.Get();

            _targetMapperBuilder = new TargetMapperBuilder(assembly);
            _config = new TinyMapperConfig(_targetMapperBuilder);
            foreach (var builder in builders)
            {
                builder.Build(this);
            }
        }
Exemple #3
0
 static TinyMapper()
 {
     _targetMapperBuilder = new TargetMapperBuilder(DynamicAssemblyBuilder.Get());
     _config = new TinyMapperConfig(_targetMapperBuilder);
 }