Class FerryRoute.FerryRouteEnumerator
Inheritance
System.Object
FerryRoute.FerryRouteEnumerator
Implements
System.Collections.Generic.IEnumerator<FerryRouteEntry>
System.Collections.IEnumerator
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SOHFerryModel.Route
Assembly: SOHFerryModel.dll
Syntax
public class FerryRouteEnumerator : IEnumerator<FerryRouteEntry>, IEnumerator, IDisposable
Constructors
| Improve this Doc View SourceFerryRouteEnumerator(List<FerryRouteEntry>)
Declaration
public FerryRouteEnumerator(List<FerryRouteEntry> entries)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<FerryRouteEntry> | entries |
Properties
| Improve this Doc View SourceCurrent
Gets the element in the collection at the current position of the enumerator.
Declaration
public FerryRouteEntry Current { get; }
Property Value
| Type | Description |
|---|---|
| FerryRouteEntry | The element in the collection at the current position of the enumerator. |
CurrentIndex
Declaration
public int CurrentIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Entries
Declaration
public List<FerryRouteEntry> Entries { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<FerryRouteEntry> |
Methods
| Improve this Doc View SourceDispose()
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
| Improve this Doc View SourceIEnumerator.Current
Gets the element in the collection at the current position of the enumerator.
Declaration
object IEnumerator.Current { get; }
Returns
| Type | Description |
|---|---|
| System.Object | The element in the collection at the current position of the enumerator. |
Implements
System.Collections.Generic.IEnumerator<T>
System.Collections.IEnumerator
System.IDisposable