protected T AppendChildNode <T>(string name) where T : ValueXmlNode, new() { T obj = XmlNodeBase.cg2X6kuxg <T>((XmlNode)this.xmlNode.OwnerDocument.CreateElement(name)); this.xmlNode.AppendChild((XmlNode)((XmlNodeBase)obj)); return(obj); }
protected T AppendChildNode <T>() where T : XmlNodeBase, new() { T obj = XmlNodeBase.cg2X6kuxg <T>((XmlNode)this.xmlNode.OwnerDocument.CreateElement(Activator.CreateInstance <T>().NodeName)); this.xmlNode.AppendChild((XmlNode)((XmlNodeBase)obj)); return(obj); }
protected T GetChildNode <T>() where T : XmlNodeBase, new() { string nodeName = Activator.CreateInstance <T>().NodeName; foreach (XmlNode xmlNode in this.xmlNode) { if (xmlNode.Name == nodeName) { return(XmlNodeBase.cg2X6kuxg <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 this.xmlNode) { if (xmlNode.Name == nodeName) { list.Add(XmlNodeBase.cg2X6kuxg <T>(xmlNode)); } } return(list); }
protected T GetChildNode <T>() where T : XmlNodeBase, new() { string nodeName = Activator.CreateInstance <T>().NodeName; foreach (XmlNode xmlNode in (XmlNode)this.DocumentElement) { if (xmlNode.Name == nodeName) { return(XmlNodeBase.cg2X6kuxg <T>(xmlNode)); } } T obj = XmlNodeBase.cg2X6kuxg <T>((XmlNode)this.CreateElement(nodeName)); this.DocumentElement.AppendChild((XmlNode)((XmlNodeBase)obj)); return(obj); }