Interface IDirectedCollectionValue<T>
A sized generic collection, that can be enumerated backwards.
Inherited Members
System.IFormattable.ToString(System.String, System.IFormatProvider)
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public interface IDirectedCollectionValue<T> : ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
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
IDirectedCollectionValue<T> Backwards()
Returns
Type | Description |
---|---|
IDirectedCollectionValue<T> | The backwards collection. |
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
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 |