1 2 3 4 5 6 7 8 9
bool anyErrors = false; if (exportResult != null) foreach (SQL2FileTransferTaskDO resultDO in exportResult) if (resultDO.AnyErrors) { anyErrors = true; break; }