/// <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; }
/// <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; }
/// <inheritdoc/> protected XmlPathLooseOpen(IXmlPathLooseOpen parent) : base(parent) { }