protected T AppendChildNode <T>(string name) where T : ValueXmlNode, new() { T obj = XmlNodeBase.YJKde7XAt <T>((XmlNode)this.An8ZGJdGe.OwnerDocument.CreateElement(name)); this.An8ZGJdGe.AppendChild((XmlNode)((XmlNodeBase)obj)); return(obj); }
protected T AppendChildNode <T>() where T : XmlNodeBase, new() { T obj = XmlNodeBase.YJKde7XAt <T>((XmlNode)this.An8ZGJdGe.OwnerDocument.CreateElement(Activator.CreateInstance <T>().NodeName)); this.An8ZGJdGe.AppendChild((XmlNode)((XmlNodeBase)obj)); return(obj); }
protected T GetChildNode <T>(string name) where T : ValueXmlNode, new() { foreach (XmlNode xmlNode in this.An8ZGJdGe) { if (xmlNode.Name == name) { return(XmlNodeBase.FwCxuX4sF <T>(xmlNode, name)); } } return(this.AppendChildNode <T>(name)); }
protected T GetChildNode <T>() where T : XmlNodeBase, new() { string nodeName = Activator.CreateInstance <T>().NodeName; foreach (XmlNode xmlNode in this.An8ZGJdGe) { if (xmlNode.Name == nodeName) { return(XmlNodeBase.YJKde7XAt <T>(xmlNode)); } } return(this.AppendChildNode <T>()); }
protected List <T> GetChildNodes <T>() where T : XmlNodeBase, new() { string nodeName = Activator.CreateInstance <T>().NodeName; List <T> list = new List <T>(); foreach (XmlNode xmlNode in (XmlNode)this.DocumentElement) { if (xmlNode.Name == nodeName) { list.Add(XmlNodeBase.YJKde7XAt <T>(xmlNode)); } } return(list); }
protected T GetChildNode <T>() where T : XmlNodeBase, new() { string nodeName = Activator.CreateInstance <T>().NodeName; foreach (XmlNode xmlNode in this.DocumentElement) { if (xmlNode.Name == nodeName) { return(XmlNodeBase.YJKde7XAt <T>(xmlNode)); } } T obj = XmlNodeBase.YJKde7XAt <T>((XmlNode)this.CreateElement(nodeName)); this.DocumentElement.AppendChild((XmlNode)((XmlNodeBase)obj)); return(obj); }