Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 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));
 }
Пример #4
0
        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>());
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }