コード例 #1
0
 // Creates a duplicate of this node.
 public override XmlNode CloneNode(bool deep)
 {
     Debug.Assert(OwnerDocument != null);
     return(OwnerDocument.CreateXmlDeclaration(Version, Encoding, Standalone));
 }
コード例 #2
0
 // Clone this node.
 public override XmlNode CloneNode(bool deep)
 {
     return(OwnerDocument.CreateXmlDeclaration
                ("1.0", encoding, standalone));
 }