Beispiel #1
0
 private void CheckErrors()
 {
     if (AllDiagnostics != null)
     {
         var errors = AllDiagnostics.Where(u => u.Severity == DiagnosticSeverity.Error);
         if (errors.Count() != 0)
         {
             throw new Exception(string.Join(newLine, errors));
         }
     }
 }
 private void CheckErrors()
 {
     if (AllDiagnostics != null)
     {
         var errors = AllDiagnostics.Where(u => u.Severity == DiagnosticSeverity.Error);
         if (errors.Any())
         {
             throw new InvalidOperationException(string.Join(_newLine, errors));
         }
     }
 }