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