Class SettingsDictionary.Enumerator
Enumerator implementation
Inheritance
System.Object
SettingsDictionary.Enumerator
Implements
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.IDisposable
System.Collections.IEnumerator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
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. |
Implements
System.Collections.Generic.IEnumerator<T>
System.IDisposable
System.Collections.IEnumerator