Show / Hide Table of Contents

    Interface IDirectedEnumerable<T>

    A generic collection, that can be enumerated backwards.

    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public interface IDirectedEnumerable<T> : System.Collections.Generic.IEnumerable<T>
    Type Parameters
    Name Description
    T

    Properties

    | Improve this Doc View Source

    Direction

    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 Source

    Backwards()

    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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)