Class LookAheadEnumerator<T>
Implements a look-ahead enumerator wrapped around a regular enumerator
Inheritance
System.Object
LookAheadEnumerator<T>
Implements
System.Collections.Generic.IEnumerator<T>
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: Azos.Collections
Assembly: Azos.dll
Syntax
public sealed class LookAheadEnumerator<T> : ILookAheadEnumerator<T>, IEnumerator<T>, IEnumerator, IDisposable
Type Parameters
Name | Description |
---|---|
T |
Constructors
LookAheadEnumerator(IEnumerator<T>)
Declaration
public LookAheadEnumerator(IEnumerator<T> enumerator)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerator<T> | enumerator |
Properties
Current
Declaration
public T Current { get; }
Property Value
Type | Description |
---|---|
T |
HasNext
Declaration
public bool HasNext { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Next
Declaration
public T Next { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Dispose()
Declaration
public void Dispose()
MoveNext()
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean |
Reset()
Declaration
public void Reset()
Explicit Interface Implementations
IEnumerator.Current
Declaration
object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
System.Object |
Implements
System.Collections.Generic.IEnumerator<T>
System.Collections.IEnumerator
System.IDisposable