public ConfigurationPropertyCollection(Type interfaceType, Type ownerType) { _ownerType = ownerType; var propertyInfos = GetPublicProperties(interfaceType); _properties = propertyInfos.Select(CreateConfigurationProperty); _configurationPropertyFactory = new ConfigurationPropertyFactory(); _hiddenPropertyBagModifier = new ConfigurationElementHiddenPropertyBagModifier(); }
public ConfigurationPropertyCollection(Type interfaceType, Type ownerType) { //_ownerType = ownerType; _configurationPropertyFactory = ConfigurationPropertyFactory.Create(); _properties = GetPublicProperties(interfaceType).Select(CreateConfigurationProperty); }