Class FerryRoute.FerryRouteEnumerator
Inheritance
FerryRoute.FerryRouteEnumerator
Assembly: SOHFerryModel.dll
Syntax
public class FerryRouteEnumerator : IEnumerator<FerryRouteEntry>
Constructors
FerryRouteEnumerator(List<FerryRouteEntry>)
Declaration
public FerryRouteEnumerator(List<FerryRouteEntry> entries)
Parameters
Properties
Current
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
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
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
Exceptions
Type |
Condition |
System.InvalidOperationException |
The collection was modified after the enumerator was created. |