[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.IndexCollection-1

IndexCollection<T> Class

Represents a collection of indexes attached to an indexed collection.

Inheritance
IndexCollection<T>
Namespace: C1.LiveLinq.Indexing
Assembly: C1.LiveLinq.4.8.dll
Syntax
public class IndexCollection<T> : ScannerCollection<T>, IDictionary<LambdaExpression, Index<T>>, ICollection<KeyValuePair<LambdaExpression, Index<T>>>, IEnumerable<KeyValuePair<LambdaExpression, Index<T>>>, ICollection<IIndexScanner<T>>, IEnumerable<IIndexScanner<T>>, IEnumerable
Type Parameters
Name Description
T

The type of the elements of the indexed collection.

Remarks

Any indexed collection (implementing the IIndexedSource<T> interface) has a collection of indexes attached to it.

Constructors

Name Description
IndexCollection(IObservableSource<T>)

Initializes a new instance of the IndexCollection<T> class.

Properties

Name Description
Count

Gets the number of indexes in the collection.

this[LambdaExpression]

Gets the index with the specified key selector.

Methods

Name Description
Add<TKey>(Expression<Func<T, TKey>>)

Creates a new index and adds it to the collection of indexes.

Add<TKey>(Expression<Func<T, TKey>>, bool)

Creates a new index and adds it to the collection of indexes.

Clear()

Clears the collection of all indexes. All indexes are detached from the indexed collection and destroyed.

Find(LambdaExpression)

Finds an index in the collection by its key selector.

Find<TKey>(Expression<Func<T, TKey>>)

Finds an index in the collection by its key selector.

GetEnumerator()

Returns an enumerator that iterates through the IndexCollection<T>.

Remove(Index<T>)

Removes an index from the collection.

Remove(LambdaExpression)

Removes an index from the collection.

Extension Methods

See Also