CreateReader() private méthode

private CreateReader ( ) : XmlReader
Résultat XmlReader
 public virtual void AppendChild(XPathNavigator newChild)
 {
     if (newChild == null)
     {
         throw new ArgumentNullException("newChild");
     }
     if (!this.IsValidChildType(newChild.NodeType))
     {
         throw new InvalidOperationException(Res.GetString("Xpn_BadPosition"));
     }
     XmlReader reader = newChild.CreateReader();
     this.AppendChild(reader);
 }
 public virtual void InsertBefore(XPathNavigator newSibling)
 {
     if (newSibling == null)
     {
         throw new ArgumentNullException("newSibling");
     }
     if (!this.IsValidSiblingType(newSibling.NodeType))
     {
         throw new InvalidOperationException(Res.GetString("Xpn_BadPosition"));
     }
     XmlReader reader = newSibling.CreateReader();
     this.InsertBefore(reader);
 }
Exemple #3
0
 public virtual void InsertAfter(XPathNavigator newSibling)
 {
     if (newSibling == null)
     {
         throw new ArgumentNullException("newSibling");
     }
     if (!IsValidSiblingType(newSibling.NodeType))
     {
         throw new InvalidOperationException(SR.Xpn_BadPosition);
     }
     XmlReader reader = newSibling.CreateReader();
     InsertAfter(reader);
 }
 public virtual void ReplaceSelf(XPathNavigator newNode)
 {
     if (newNode == null)
     {
         throw new ArgumentNullException("newNode");
     }
     XmlReader reader = newNode.CreateReader();
     this.ReplaceSelf(reader);
 }
Exemple #5
0
 public virtual void PrependChild(XPathNavigator newChild)
 {
     if (newChild == null)
     {
         throw new ArgumentNullException("newChild");
     }
     if (!IsValidChildType(newChild.NodeType))
     {
         throw new InvalidOperationException(SR.Xpn_BadPosition);
     }
     XmlReader reader = newChild.CreateReader();
     PrependChild(reader);
 }