namespace System.Xml {
/// Represents an xml declaration.
public class XMLIRWDeclaration : XMLIRW {
///
public override string Name { get; set; }
///
public override XMLIRW Parent { get; set; }
/// Gets the XML version of the document.
public string Version { get; protected set; }
/// Gets or sets the encoding level of the XML document.
public string Encoding { get; protected set; }
///
public override XmlNodeType Type { get; set; }
/// Gets or sets the value of the standalone attribute.
public string Standalone { get; protected set; }
///
public XMLIRWDeclaration(XMLIRW parent, string version, string encoding, string standalone) : base(parent, "xml", XmlNodeType.XmlDeclaration) {
Version = version;
Encoding = encoding;
Standalone = standalone;
}
///
public XMLIRWDeclaration(XMLIRW parent, string version, string encoding) :
this(parent, version, encoding, default) {}
///
public XMLIRWDeclaration(XMLIRW parent, string version) :
this(parent, version, default) {}
///
public XMLIRWDeclaration(XMLIRW parent) : this(parent, "1.0") {}
///
public XMLIRWDeclaration(string version, string encoding, string standalone) :
this(default, version, encoding, standalone) {}
///
public XMLIRWDeclaration(string version, string encoding) :
this(default, version, encoding, default) {}
///
public XMLIRWDeclaration(string version) : this(default(XMLIRW), version, default) {}
///
public XMLIRWDeclaration() : this(default(XMLIRW), "1.0") {}
///
public override void Dispose() {
Name =
Version =
Encoding =
Standalone = default;
Type = default;
Parent = default;
}
}
}