private bool IsStreamClosed()
{
// Check the .CanRead and .CanWrite and .CanSeek properties to make sure stream is really closed
if (_isClosed || _stream == null || (!_stream.CanRead && !_stream.CanWrite && !_stream.CanSeek))
return true;
else
return false;
}
} // class SqlXmlStreamWrapper