Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QueryOperatorEnumerator.cs
Go to the documentation of this file.
4
6
7internal abstract class QueryOperatorEnumerator<TElement, TKey>
8{
10 {
12
13 private TElement _current;
14
15 public TElement Current => _current;
16
17 object IEnumerator.Current => _current;
18
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();
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
61}
QueryOperatorClassicEnumerator(QueryOperatorEnumerator< TElement, TKey > operatorEnumerator)
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)