/// <summary> /// Creates an instance initializing it with the specified parameters. /// </summary> /// <param name="instancePrefix">Application instance prefix</param> /// <param name="instanceName">Application instance name</param> /// <param name="provider">Application configuration provider</param> /// <param name="constructorParams">Constructor parameters</param> /// <param name="properties">Configuration instance properties</param> public AppConfigurationSettings(string instancePrefix, string instanceName, Type provider, UnnamedPropertySettingsCollection constructorParams = null, PropertySettingsCollection properties = null): this() { Init(); InstancePrefix = instancePrefix; InstanceName = instanceName; Provider = provider; if (constructorParams != null) ConstructorParameters = constructorParams; if (properties != null) Properties = properties; }
/// <summary> /// Initializes this instance /// </summary> private void Init() { ConstructorParameters = new UnnamedPropertySettingsCollection(PARAM); Properties = new PropertySettingsCollection(); }