示例#1
0
        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);
        }
示例#2
0
 public void ExcludeSection(params string[] sections)
 {
     IncludeMode = false;
     Exclude.AddRange(sections);
 }