コード例 #1
0
        private static ExcludeEntry CreateExcludeEntry(XmlNode configuration)
        {
            ExcludeEntry excludeEntry = new ExcludeEntry();

            excludeEntry.Type  = configuration.Attributes[0].Name;
            excludeEntry.Value = configuration.Attributes[0].Value;
            return(excludeEntry);
        }
コード例 #2
0
ファイル: PresetFactory.cs プロジェクト: GuitarRich/Console
 private static ExcludeEntry CreateExcludeEntry(XmlNode configuration)
 {
     var excludeEntry = new ExcludeEntry();
     if (configuration.Attributes != null && configuration.Attributes.Count > 0)
     {
         excludeEntry.Type = configuration.Attributes[0].Name;
         excludeEntry.Value = configuration.Attributes[0].Value;
     }
     foreach (XmlNode child in configuration.ChildNodes)
     {
         if (child.NodeType == XmlNodeType.Element && child.Name == "include")
         {
             excludeEntry.Include.Add(CreateIncludeEntry(child));
         }
     }
     return excludeEntry;
 }
コード例 #3
0
        private static ExcludeEntry CreateExcludeEntry(XmlNode configuration)
        {
            var excludeEntry = new ExcludeEntry();

            if (configuration.Attributes != null && configuration.Attributes.Count > 0)
            {
                excludeEntry.Type  = configuration.Attributes[0].Name;
                excludeEntry.Value = configuration.Attributes[0].Value;
            }
            foreach (XmlNode child in configuration.ChildNodes)
            {
                if (child.NodeType == XmlNodeType.Element && child.Name == "include")
                {
                    excludeEntry.Include.Add(CreateIncludeEntry(child));
                }
            }
            return(excludeEntry);
        }
コード例 #4
0
 private static ExcludeEntry CreateExcludeEntry(XmlNode configuration)
 {
     ExcludeEntry excludeEntry = new ExcludeEntry();
     excludeEntry.Type = configuration.Attributes[0].Name;
     excludeEntry.Value = configuration.Attributes[0].Value;
     return excludeEntry;
 }