Class SettingsDictionary.Enumerator
Enumerator implementation
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 9.12.2Syntax
public sealed class Enumerator : IEnumerator<KeyValuePair<string, object>>, IDisposable, IEnumerator
Constructors
Enumerator(Dictionary<String, Setting>)
Initializes a new instance of the SettingsDictionary.Enumerator class.
Declaration
public Enumerator(Dictionary<string, Setting> dictionary)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, Setting> | dictionary | The dictionary to enumerate. |
Properties
Current
Gets the current entry.
Declaration
public KeyValuePair<string, object> Current { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.KeyValuePair<System.String, System.Object> |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | 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 |
---|---|
System.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 void Reset()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The collection was modified after the enumerator was created. |
Explicit Interface Implementations
IEnumerator.Current
Gets the current entry.
Declaration
object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
System.Object | The current. |