Struct ListString.Enumerator
Enumerates the elements of a System.Collections.Generic.List.
Inherited Members
Namespace: System.Collections.Generic
Assembly: Iot.Device.CharacterLcd.dll
Syntax
public struct Enumerator : IEnumerator, IDisposable
Constructors
| Improve this Doc View SourceEnumerator(ListString)
Create an enumerator of the collection
Declaration
public Enumerator(ListString collection)
Parameters
Type | Name | Description |
---|---|---|
ListString | collection |
Properties
| Improve this Doc View SourceCurrent
Gets the element at the current position of the enumerator.
Declaration
public readonly string Current { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceDispose()
Releases all resources used by the System.Collections.Generic.List.Enumerator.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next element of the System.Collections.Generic.List.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |
Reset()
Move back to first position
Declaration
public void Reset()
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerator.Current
Declaration
readonly object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
Object |