internal ConfigurationCollectionSchema(string path, string addElementNames, string removeElementName, string clearElementName, bool isMergeAppend, bool allowDuplicates, bool allowUnrecognizedAttributes)
{
IsMergeAppend = isMergeAppend;
AllowDuplicates = allowDuplicates;
AddElementNames = addElementNames;
AddSchemas = new List<ConfigurationElementSchema>(_addNames.Length);
foreach (var name in _addNames)
{
AddSchemas.Add(new ConfigurationElementSchema { Path = path + '/' + name, AllowUnrecognizedAttributes = allowUnrecognizedAttributes, Name = name });
}
RemoveElementName = removeElementName;
RemoveSchema = RemoveElementName == null
? null
: new ConfigurationElementSchema
{
Path = path + '/' + RemoveElementName,
AllowUnrecognizedAttributes =
allowUnrecognizedAttributes,
Name = RemoveElementName
};
ClearElementName = clearElementName;
ClearSchema = ClearElementName == null
? null
: new ConfigurationElementSchema
{
Path = path + '/' + ClearElementName,
AllowUnrecognizedAttributes =
allowUnrecognizedAttributes,
Name = ClearElementName
};
Path = path;
}