コード例 #1
0
        /// <summary>
        /// Constructs a node that extends the specified parent node by targetting an child element by its name.
        /// </summary>
        /// <param name="parent">The parent node to encapsulate.</param>
        /// <param name="name">The name of the inner element.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="parent"/> or <paramref name="name"/> is null.</exception>
        /// <exception cref="ArgumentException">Thrown if <paramref name="name"/> is empty.</exception>
        public XmlPathLooseOpenElement(IXmlPathLooseOpen parent, string name)
            : base(parent)
        {
            if (name == null)
                throw new ArgumentNullException("name");
            if (name.Length == 0)
                throw new ArgumentException("Cannot be empty.", "name");

            this.name = name;
        }
コード例 #2
0
        /// <summary>
        /// Constructs a node that extends the specified parent node by targetting an child element by its name.
        /// </summary>
        /// <param name="parent">The parent node to encapsulate.</param>
        /// <param name="name">The name of the inner element.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="parent"/> or <paramref name="name"/> is null.</exception>
        /// <exception cref="ArgumentException">Thrown if <paramref name="name"/> is empty.</exception>
        public XmlPathLooseOpenElement(IXmlPathLooseOpen parent, string name)
            : base(parent)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            if (name.Length == 0)
            {
                throw new ArgumentException("Cannot be empty.", "name");
            }

            this.name = name;
        }
コード例 #3
0
 /// <inheritdoc/>
 protected XmlPathLooseOpen(IXmlPathLooseOpen parent)
     : base(parent)
 {
 }
コード例 #4
0
 /// <inheritdoc/>
 protected XmlPathLooseOpen(IXmlPathLooseOpen parent)
     : base(parent)
 {
 }