public override void Close()
{
if (IsClosed)
return;
try
{
FinishDocument();
AutoComplete(WriteState.Closed);
_writer.Flush();
}
finally
{
_nsMgr.Close();
if (_depth != 0)
{
_elements = null;
_depth = 0;
}
_attributeValue = null;
_attributeLocalName = null;
_nodeWriter.Close();
}
}