public object LoadConfigurationFromFileWithCustomMemberInfo(Type configurationType, IniOptionsAttribute iniOptionsAttribute)
        {
            var memberInfoFactory = new ComplexTypeMemberInfoFactory(iniOptionsAttribute);

            return(_constructorChecker.HasConstructorWithAttribute(configurationType)
                ? ReadForImmutableType(configurationType, memberInfoFactory)
                : ReadForNormalType(configurationType, memberInfoFactory));
        }
예제 #2
0
 public IIniWrapperInternal Create(Type destinationType)
 {
     return(_iniConstructorChecker.HasConstructorWithAttribute(destinationType) ? _iniWrapperForImmutableTypeFactory.Create(destinationType) : _iniWrapperInternal);
 }