private static ExcludeEntry CreateExcludeEntry(XmlNode configuration) { ExcludeEntry excludeEntry = new ExcludeEntry(); excludeEntry.Type = configuration.Attributes[0].Name; excludeEntry.Value = configuration.Attributes[0].Value; return(excludeEntry); }
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; }
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); }
private static ExcludeEntry CreateExcludeEntry(XmlNode configuration) { ExcludeEntry excludeEntry = new ExcludeEntry(); excludeEntry.Type = configuration.Attributes[0].Name; excludeEntry.Value = configuration.Attributes[0].Value; return excludeEntry; }