public override void Close() { // Flush any cached events to an Xml writer EnsureWrappedWriter(XmlOutputMethod.Xml); this.wrapped.Close(); }