Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WrapEnumerable< TElement >()

static IEnumerable< TElement > System.Linq.Parallel.ExceptionAggregator.WrapEnumerable< TElement > ( IEnumerable< TElement > source,
CancellationState cancellationState )
inlinestaticpackage

Definition at line 7 of file ExceptionAggregator.cs.

8 {
9 using IEnumerator<TElement> enumerator = source.GetEnumerator();
10 while (true)
11 {
12 TElement val = default(TElement);
13 try
14 {
15 if (!enumerator.MoveNext())
16 {
17 break;
18 }
19 val = enumerator.Current;
20 }
21 catch (Exception ex)
22 {
24 }
25 yield return val;
26 }
27 }
static void ThrowOCEorAggregateException(Exception ex, CancellationState cancellationState)

References System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.Linq.source, and System.Linq.Parallel.ExceptionAggregator.ThrowOCEorAggregateException().