Exemplo n.º 1
0
        public override void Close()
        {
            _wrapped.Close();

            if (_checkWellFormedDoc && !_hasDocElem)
            {
                // Need at least one document element
                throw new XmlException(ResXml.Xml_NoRoot, string.Empty);
            }
        }
Exemplo n.º 2
0
 public override void Close()
 {
     // Flush any cached events to an Xml writer
     EnsureWrappedWriter(XmlOutputMethod.Xml);
     _wrapped.Close();
 }