static TinyMapper() { IDynamicAssembly assembly = DynamicAssemblyBuilder.Get(); _targetMapperBuilder = new TargetMapperBuilder(assembly); _config = new TinyMapperConfig(_targetMapperBuilder); }
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); } }
static TinyMapper() { _targetMapperBuilder = new TargetMapperBuilder(DynamicAssemblyBuilder.Get()); _config = new TinyMapperConfig(_targetMapperBuilder); }