Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SynchEnumerator.cs
1using System.Collections;
2using System.Threading.Tasks;
3
5{
10 {
11 private readonly IEnumerator e;
12
17 public SynchEnumerator(IEnumerator e)
18 {
19 this.e = e;
20 }
21
25 public object Current => this.e.Current;
26
31 public bool MoveNext()
32 {
33 return this.e.MoveNext();
34 }
35
40 public Task<bool> MoveNextAsync()
41 {
42 return Task.FromResult(this.e.MoveNext());
43 }
44
48 public void Reset()
49 {
50 this.e.Reset();
51 }
52 }
53}
SynchEnumerator(IEnumerator e)
Synchronous enumerator
Task< bool > MoveNextAsync()
Tries to move to next item.