Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ParallelQuery.cs
Go to the documentation of this file.
5
6namespace System.Linq;
7
8public class ParallelQuery : IEnumerable
9{
11
13
18
19 [ExcludeFromCodeCoverage(Justification = "The derived class must override this method")]
21 {
22 throw new NotSupportedException();
23 }
24
25 [ExcludeFromCodeCoverage(Justification = "The derived class must override this method")]
27 {
28 throw new NotSupportedException();
29 }
30
31 [ExcludeFromCodeCoverage(Justification = "The derived class must override this method")]
33 {
34 throw new NotSupportedException();
35 }
36
41}
42public class ParallelQuery<TSource> : ParallelQuery, IEnumerable<TSource>, IEnumerable
43{
44 internal ParallelQuery(QuerySettings settings)
45 : base(settings)
46 {
47 }
48
49 internal sealed override ParallelQuery<TCastTo> Cast<TCastTo>()
50 {
51 return this.Select((TSource elem) => (TCastTo)(object)elem);
52 }
53
54 internal sealed override ParallelQuery<TCastTo> OfType<TCastTo>()
55 {
56 return from elem in this
58 select (TCastTo)(object)elem;
59 }
60
62 {
63 return ((IEnumerable<TSource>)this).GetEnumerator();
64 }
65
67 {
68 throw new NotSupportedException();
69 }
70}
ParallelQuery(QuerySettings settings)
virtual ParallelQuery< TCastTo > Cast< TCastTo >()
virtual IEnumerator< TSource > GetEnumerator()
virtual IEnumerator GetEnumeratorUntyped()
QuerySettings SpecifiedQuerySettings
QuerySettings _specifiedSettings
ParallelQuery(QuerySettings specifiedSettings)
override IEnumerator GetEnumeratorUntyped()
virtual ParallelQuery< TCastTo > OfType< TCastTo >()
new IEnumerator< T > GetEnumerator()