public DirectoryContainer(XElement element, ILoadingContext context) : base(element, context) { Initialize(); Path = element.Element("Path").Value; Include.AddRange(LoadRules(element.Element("Include"), context)); Exclude.AddRange(LoadRules(element.Element("Exclude"), context)); Options = new DirectoryContainerOptions(element.Element("Options"), context); }
public void ExcludeSection(params string[] sections) { IncludeMode = false; Exclude.AddRange(sections); }