Interface IDirectedEnumerable<T>
A generic collection, that can be enumerated backwards.
Inherited Members
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public interface IDirectedEnumerable<T> : IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Properties
| Improve this Doc View SourceDirection
Forwards
if same, else Backwards
Declaration
EnumerationDirection Direction { get; }
Property Value
Type | Description |
---|---|
EnumerationDirection | The enumeration direction relative to the original collection. |
Methods
| Improve this Doc View SourceBackwards()
Create a collection containing the same items as this collection, but whose enumerator will enumerate the items backwards. The new collection will become invalid if the original is modified. Method typically used as in
foreach (T x in coll.Backwards()) {...}
Declaration
IDirectedEnumerable<T> Backwards()
Returns
Type | Description |
---|---|
IDirectedEnumerable<T> | The backwards collection. |