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

◆ WrapQueryEnumerator< TElement, TIgnoreKey >()

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

Definition at line 29 of file ExceptionAggregator.cs.

30 {
31 TElement elem = default(TElement);
33 try
34 {
35 while (true)
36 {
37 try
38 {
39 if (!source.MoveNext(ref elem, ref ignoreKey))
40 {
41 break;
42 }
43 }
44 catch (Exception ex)
45 {
47 }
48 yield return elem;
49 }
50 }
51 finally
52 {
53 source.Dispose();
54 }
55 }
static void ThrowOCEorAggregateException(Exception ex, CancellationState cancellationState)

References System.Linq.source, and System.Linq.Parallel.ExceptionAggregator.ThrowOCEorAggregateException().