public void Close() #endif { Debug.WriteLineIf(CLI.FnTrace.Enabled, "VirtuosoDataReader.Close()"); if (open) { if (command != null) { command.CloseDataReader(); command = null; } if (connection != null && (commandBehavior & CommandBehavior.CloseConnection) != 0) { connection.Close(); connection = null; } columns = null; open = false; } }