Class ConverterCollections.ConverterDictionaryEnumerator
A Converter DictionaryEnumerator views an underlying IDictionaryEnumerator through key and value IConverters.
Inherited Members
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public class ConverterCollections.ConverterDictionaryEnumerator : IDictionaryEnumerator, IEnumerator
Constructors
ConverterDictionaryEnumerator(IDictionaryEnumerator, IConverter, IConverter)
Constructor.
Declaration
public ConverterDictionaryEnumerator(IDictionaryEnumerator enumerator, IConverter convKey, IConverter convValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionaryEnumerator | enumerator | The underlying IDictionaryEnumerator. |
| IConverter | convKey | The IConverter used to convert keys. |
| IConverter | convValue | The IConverter used to convert values. |
Fields
m_convKey
The IConverter used to convert keys.
Declaration
protected IConverter m_convKey
Field Value
| Type | Description |
|---|---|
| IConverter |
m_convValue
The IConverter used to convert values.
Declaration
protected IConverter m_convValue
Field Value
| Type | Description |
|---|---|
| IConverter |
m_enum
The underlying IDictionaryEnumerator.
Declaration
protected IDictionaryEnumerator m_enum
Field Value
| Type | Description |
|---|---|
| IDictionaryEnumerator |
Properties
ConverterKeyUp
The IConverter used to convert keys of the DictionaryEntry objects which underlying enumerator iterates.
Declaration
public virtual IConverter ConverterKeyUp { get; }
Property Value
| Type | Description |
|---|---|
| IConverter | The IConverter used to convert keys of the DictionaryEntry objects which underlying enumerator iterates. |
ConverterValueUp
The IConverter used to convert values of the DictionaryEntry objects which underlying enumerator iterates.
Declaration
public virtual IConverter ConverterValueUp { get; }
Property Value
| Type | Description |
|---|---|
| IConverter | The IConverter used to convert values of the DictionaryEntry objects which underlying enumerator iterates. |
Current
Gets the current element in the collection.
Declaration
public virtual 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 virtual DictionaryEntry Entry { get; }
Property Value
| Type | Description |
|---|---|
| DictionaryEntry | A DictionaryEntry containing both the key and the value of the current dictionary entry. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The enumerator is positioned before the first entry of the dictionary or after the last entry. |
Enumerator
The underlying IDictionaryEnumerator.
Declaration
public virtual IDictionaryEnumerator Enumerator { get; }
Property Value
| Type | Description |
|---|---|
| IDictionaryEnumerator | The underlying IDictionaryEnumerator. |
Key
Gets the key of the current dictionary entry.
Declaration
public virtual object Key { get; }
Property Value
| Type | Description |
|---|---|
| object | The key of the current element of the enumeration. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The enumerator is positioned before the first entry of the dictionary or after the last entry. |
Value
Gets the value of the current dictionary entry.
Declaration
public virtual object Value { get; }
Property Value
| Type | Description |
|---|---|
| object | The value of the current element of the enumeration. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The enumerator is positioned before the first entry of the dictionary or after the last entry. |
Methods
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public virtual 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. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The collection was modified after the enumerator was created. |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public virtual void Reset()
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The collection was modified after the enumerator was created. |