mscorlib(4.0.0.0) API with additions
ParallelQuery.cs
1 using System.Collections;
3 using System.Linq.Parallel;
4 
5 namespace System.Linq
6 {
8  [global::__DynamicallyInvokable]
9  public class ParallelQuery : IEnumerable
10  {
11  private QuerySettings m_specifiedSettings;
12 
13  internal QuerySettings SpecifiedQuerySettings => m_specifiedSettings;
14 
15  internal ParallelQuery(QuerySettings specifiedSettings)
16  {
17  m_specifiedSettings = specifiedSettings;
18  }
19 
20  internal virtual ParallelQuery<TCastTo> Cast<TCastTo>()
21  {
22  throw new NotSupportedException();
23  }
24 
25  internal virtual ParallelQuery<TCastTo> OfType<TCastTo>()
26  {
27  throw new NotSupportedException();
28  }
29 
30  internal virtual IEnumerator GetEnumeratorUntyped()
31  {
32  throw new NotSupportedException();
33  }
34 
37  [global::__DynamicallyInvokable]
39  {
40  return GetEnumeratorUntyped();
41  }
42  }
45  [global::__DynamicallyInvokable]
46  public class ParallelQuery<TSource> : ParallelQuery, IEnumerable<TSource>, IEnumerable
47  {
48  internal ParallelQuery(QuerySettings settings)
49  : base(settings)
50  {
51  }
52 
53  internal sealed override ParallelQuery<TCastTo> Cast<TCastTo>()
54  {
55  return from elem in this
56  select (TCastTo)(object)elem;
57  }
58 
59  internal sealed override ParallelQuery<TCastTo> OfType<TCastTo>()
60  {
61  return from elem in this
62  where ((object)elem) is TCastTo
63  select (TCastTo)(object)elem;
64  }
65 
66  internal override IEnumerator GetEnumeratorUntyped()
67  {
68  return ((IEnumerable<TSource>)this).GetEnumerator();
69  }
70 
73  [global::__DynamicallyInvokable]
75  {
76  throw new NotSupportedException();
77  }
78  }
79 }
Definition: __Canon.cs:3
Represents a parallel sequence.
Definition: ParallelQuery.cs:9
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Definition: IEnumerable.cs:9
virtual IEnumerator< TSource > GetEnumerator()
Returns an enumerator that iterates through the sequence.
IEnumerator GetEnumerator()
Returns an enumerator that iterates through a collection.
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
Supports a simple iteration over a non-generic collection.
Definition: IEnumerator.cs:9