Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DictionaryEnumerator.cs
1
using
System
;
2
using
System.Collections
;
3
using
System.Collections.Generic
;
4
using
System.Text;
5
6
namespace
Waher.Persistence.MongoDB
7
{
11
public
class
DictionaryEnumerator
: IEnumerator<KeyValuePair<string, object>>
12
{
13
private
readonly IEnumerable<DictionaryEntry> entries;
14
private
readonly IEnumerator<DictionaryEntry> e;
15
16
internal
DictionaryEnumerator
(IEnumerable<DictionaryEntry> Entries)
17
{
18
this.entries = Entries;
19
this.e = this.entries.GetEnumerator();
20
}
21
25
public
KeyValuePair<string, object>
Current
=>
new
KeyValuePair<string, object>(this.e.Current.Key,
this
.e.Current.Value);
26
30
object
IEnumerator.Current =>
new
KeyValuePair<string, object>(this.e.Current.Key,
this
.e.Current.Value);
31
35
public
void
Dispose
()
36
{
37
this.e.Dispose();
38
}
39
43
public
bool
MoveNext
()
44
{
45
return
this.e.MoveNext();
46
}
47
51
public
void
Reset
()
52
{
53
this.e.Reset();
54
}
55
}
56
}
Waher.Persistence.MongoDB.DictionaryEnumerator
Dictionary enumerator
Definition:
DictionaryEnumerator.cs:12
Waher.Persistence.MongoDB.DictionaryEnumerator.MoveNext
bool MoveNext()
IEnumerator.MoveNext
Definition:
DictionaryEnumerator.cs:43
Waher.Persistence.MongoDB.DictionaryEnumerator.Reset
void Reset()
IEnumerator.Reset
Definition:
DictionaryEnumerator.cs:51
Waher.Persistence.MongoDB.DictionaryEnumerator.Dispose
void Dispose()
IDisposable.Dispose
Definition:
DictionaryEnumerator.cs:35
Waher.Persistence.MongoDB.DictionaryEnumerator.Current
KeyValuePair< string, object > Current
IEnumerator<T>.Current
Definition:
DictionaryEnumerator.cs:25
System.Collections.Generic
Definition:
ImplTypes.g.cs:4970
System.Collections
Definition:
ImplTypes.g.cs:4970
System
Definition:
Adapters.g.cs:58
Waher.Persistence.MongoDB
Definition:
DictionaryEntry.cs:7
IoTGateway
Persistence
Waher.Persistence.MongoDB
DictionaryEnumerator.cs
Generated by
1.9.5