Class DirectedCollectionBase<T>
Inheritance
System.Object
    
    
    
    DirectedCollectionBase<T>
      
  Implements
System.IFormattable
    
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
  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)
    
  Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public abstract class DirectedCollectionBase<T> : CollectionBase<T>, IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, IEnumerable<T>, IEnumerable
  Type Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
| Improve this Doc View SourceDirectedCollectionBase(IEqualityComparer<T>, MemoryType)
Declaration
protected DirectedCollectionBase(IEqualityComparer<T> itemequalityComparer, MemoryType memoryType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEqualityComparer<T> | itemequalityComparer | |
| MemoryType | memoryType | The type of memory for the enumerator used to iterate the collection  | 
      
Properties
| Improve this Doc View SourceDirection
Forwards if same, else Backwards
Declaration
public virtual EnumerationDirection Direction { get; }
  Property Value
| Type | Description | 
|---|---|
| EnumerationDirection | The enumeration direction relative to the original collection.  | 
      
Methods
| Improve this Doc View SourceBackwards()
Declaration
public abstract IDirectedCollectionValue<T> Backwards()
  Returns
| Type | Description | 
|---|---|
| IDirectedCollectionValue<T> | 
FindLast(Func<T, Boolean>, out T)
Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order.
Declaration
public virtual bool FindLast(Func<T, bool> predicate, out T item)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Func<T, System.Boolean> | predicate | A delegate (Func`2 with ) defining the predicate
 | 
      
| T | item | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True is such an item exists  | 
      
Explicit Interface Implementations
| Improve this Doc View SourceIDirectedEnumerable<T>.Backwards()
Declaration
IDirectedEnumerable<T> IDirectedEnumerable<T>.Backwards()
  Returns
| Type | Description | 
|---|---|
| IDirectedEnumerable<T> | 
Implements
      System.IFormattable
  
  
  
      System.Collections.Generic.IEnumerable<T>
  
  
      System.Collections.IEnumerable