{
accumulator = _finalReduce(accumulator, enumerator.Current);
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
// We need to wrap all exceptions into an aggregate.
{
return _resultSelector(accumulator);
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
// We need to wrap all exceptions into an aggregate.
}
elem = enumerator.Current;
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
ThrowOCEorAggregateException(ex, cancellationState);
yield break;
}
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
ThrowOCEorAggregateException(ex, cancellationState);
{
retval = f(t);
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
ThrowOCEorAggregateException(ex, cancellationState);
{
acc = func(acc, elem);
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception e)
{
throw new AggregateException(e);
{
return resultSelector(acc);
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception e)
{
throw new AggregateException(e);
}
if (e2.MoveNext()) return false;
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
ExceptionAggregator.ThrowOCEorAggregateException(ex, settings.CancellationState);
{
e.Dispose();
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
ExceptionAggregator.ThrowOCEorAggregateException(ex, cancelState);
key = keySelector(val);
result.Add(key, val);
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
throw new AggregateException(ex);
{
result.Add(keySelector(src), elementSelector(src));
}
-#if SUPPORT_THREAD_ABORT
- catch (ThreadAbortException)
- {
- // Do not wrap ThreadAbortExceptions
- throw;
- }
-#endif
catch (Exception ex)
{
throw new AggregateException(ex);