Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QueryOperatorEnumerator.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
using
System.Collections.Generic
;
3
using
System.Diagnostics.CodeAnalysis
;
4
5
namespace
System.Linq.Parallel
;
6
7
internal
abstract
class
QueryOperatorEnumerator
<TElement, TKey>
8
{
9
private
sealed
class
QueryOperatorClassicEnumerator
:
IEnumerator
<TElement>,
IEnumerator
,
IDisposable
10
{
11
private
QueryOperatorEnumerator<TElement, TKey>
_operatorEnumerator
;
12
13
private
TElement
_current
;
14
15
public
TElement
Current
=>
_current
;
16
17
object
IEnumerator.Current =>
_current
;
18
19
internal
QueryOperatorClassicEnumerator
(
QueryOperatorEnumerator<TElement, TKey>
operatorEnumerator
)
20
{
21
_operatorEnumerator
=
operatorEnumerator
;
22
}
23
24
public
bool
MoveNext
()
25
{
26
TKey currentKey =
default
(TKey);
27
return
_operatorEnumerator
.MoveNext(
ref
_current
,
ref
currentKey);
28
}
29
30
public
void
Dispose
()
31
{
32
_operatorEnumerator
.Dispose();
33
_operatorEnumerator
=
null
;
34
}
35
36
public
void
Reset
()
37
{
38
_operatorEnumerator
.Reset();
39
}
40
}
41
42
internal
abstract
bool
MoveNext
([
MaybeNullWhen
(
false
)][
AllowNull
]
ref
TElement
currentElement
, [
AllowNull
]
ref
TKey currentKey);
43
44
public
void
Dispose
()
45
{
46
Dispose
(
disposing
:
true
);
47
}
48
49
protected
virtual
void
Dispose
(
bool
disposing
)
50
{
51
}
52
53
internal
virtual
void
Reset
()
54
{
55
}
56
57
internal
IEnumerator<TElement>
AsClassicEnumerator
()
58
{
59
return
new
QueryOperatorClassicEnumerator
(
this
);
60
}
61
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator.QueryOperatorClassicEnumerator
QueryOperatorClassicEnumerator(QueryOperatorEnumerator< TElement, TKey > operatorEnumerator)
Definition
QueryOperatorEnumerator.cs:19
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator.Reset
void Reset()
Definition
QueryOperatorEnumerator.cs:36
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator.Current
TElement Current
Definition
QueryOperatorEnumerator.cs:15
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator.Dispose
void Dispose()
Definition
QueryOperatorEnumerator.cs:30
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator._current
TElement _current
Definition
QueryOperatorEnumerator.cs:13
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator._operatorEnumerator
QueryOperatorEnumerator< TElement, TKey > _operatorEnumerator
Definition
QueryOperatorEnumerator.cs:11
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator.MoveNext
bool MoveNext()
Definition
QueryOperatorEnumerator.cs:24
System.Linq.Parallel.QueryOperatorEnumerator.QueryOperatorClassicEnumerator
Definition
QueryOperatorEnumerator.cs:10
System.Linq.Parallel.QueryOperatorEnumerator.AsClassicEnumerator
IEnumerator< TElement > AsClassicEnumerator()
Definition
QueryOperatorEnumerator.cs:57
System.Linq.Parallel.QueryOperatorEnumerator.Reset
virtual void Reset()
Definition
QueryOperatorEnumerator.cs:53
System.Linq.Parallel.QueryOperatorEnumerator.MoveNext
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)
System.Linq.Parallel.QueryOperatorEnumerator.Dispose
virtual void Dispose(bool disposing)
Definition
QueryOperatorEnumerator.cs:49
System.Linq.Parallel.QueryOperatorEnumerator.Dispose
void Dispose()
Definition
QueryOperatorEnumerator.cs:44
System.Linq.Parallel.QueryOperatorEnumerator
Definition
QueryOperatorEnumerator.cs:8
System.Collections.Generic.IEnumerator
Definition
IEnumerator.cs:4
System.IDisposable
Definition
IDisposable.cs:4
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Collections
Definition
BlockingCollection.cs:8
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Linq.Parallel
Definition
AnyAllSearchOperator.cs:5
source
System.Linq.Parallel
System.Linq.Parallel
QueryOperatorEnumerator.cs
Generated by
1.10.0