Class NullImplementation.NullEnumerator
An empty enumerator.
Inherited Members
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public class NullImplementation.NullEnumerator : ICacheEnumerator, IDictionaryEnumerator, IEnumerator
Fields
Instance
Since the enumerator contains no information, only one ever has to exist.
Declaration
public static readonly NullImplementation.NullEnumerator Instance
Field Value
Type | Description |
---|---|
NullImplementation.NullEnumerator |
Properties
Current
Gets the current element in the collection.
Declaration
public object Current { get; }
Property Value
Type | Description |
---|---|
object | The current element in the collection. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The enumerator is positioned before the first element of the collection or after the last element. |
Entry
Gets both the key and the value of the current dictionary entry.
Declaration
public DictionaryEntry Entry { get; }
Property Value
Type | Description |
---|---|
DictionaryEntry | A DictionaryEntry containing both the key and the value of the current dictionary entry. |
Key
Gets the key of the current dictionary entry.
Declaration
public object Key { get; }
Property Value
Type | Description |
---|---|
object | The key of the current element of the enumeration. |
Value
Gets the value of the current dictionary entry.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
object | The value of the current element of the enumeration. |
Methods
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()