Struct SortedIntView.Enumerator
- Namespace
- Graphity
- Assembly
- Graphity.Core.dll
An enumerator over the values of a SortedIntView, in ascending order.
public struct SortedIntView.Enumerator : IEnumerator<int>, IEnumerator, IDisposable
- Implements
- Inherited Members
Remarks
A struct, so that foreach allocates nothing; through the interfaces it is boxed once
per enumeration. Reset() is not supported.
Properties
Current
Gets the value at the current position.
public readonly int Current { get; }
Property Value
Remarks
Time: O(1).
Methods
Dispose()
Does nothing: the enumerator holds no resources.
public readonly void Dispose()
MoveNext()
Advances to the next value.
public bool MoveNext()
Returns
Remarks
Time: O(1).
Reset()
Not supported: a view is enumerated again with a new enumerator.
public readonly void Reset()
Exceptions
- NotSupportedException
Always.