1 2 3 4 5 6
bool anyErrors = false; if ((exportResult != null) && !anyErrors) foreach (SQL2FileTransferTaskDO resultDO in exportResult) if(anyErrors = resultDO.AnyErrors) break;