public MapperContext() { Cache = new CacheSet(); Naming = new NamingSettings(Cache); QualifiedMemberFactory = new QualifiedMemberFactory(this); RootMembersSource = new RootMembersSource(QualifiedMemberFactory); ObjectMapperFactory = new ObjectMapperFactory(Cache); UserConfigurations = new UserConfigurationSet(this); ConstructionFactory = new ComplexTypeConstructionFactory(Cache); ValueConverters = new ConverterSet(UserConfigurations); RuleSets = MappingRuleSetCollection.Default; }
public MapperContext(NamingSettings namingSettings = null) { Cache = new CacheSet(); DataSources = new DataSourceFinder(); NamingSettings = namingSettings ?? new NamingSettings(); RootMembersSource = new RootMembersSource(new RootQualifiedMemberFactory(this)); ObjectMapperFactory = new ObjectMapperFactory(this); ObjectFlattener = new ObjectFlattener(); DerivedTypes = new DerivedTypesCache(); UserConfigurations = new UserConfigurationSet(); ValueConverters = new ConverterSet(); RuleSets = new MappingRuleSetCollection(); }