public void Close() { if (_writer != null) { _writer.Close(); } if (_elementWriter != null) { _elementWriter.Close(); } if (_elementStream != null && _elementStream.Length > 512) { _elementStream = null !; } _elementBuffer = null; if (_scopes != null && _scopes.Length > 16) { _scopes = null; } if (_attributes != null && _attributes.Length > 16) { _attributes = null; } if (_xmlnsBuffer != null && _xmlnsBuffer.Length > 1024) { _xmlnsAttributes = null; _xmlnsBuffer = null; } _inclusivePrefixes = null; }