[]
Represents a collection of indexes attached to an indexed collection.
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
Name | Description |
---|---|
T | The type of the elements of the indexed collection. |
Any indexed collection (implementing the IIndexedSource<T> interface) has a collection of indexes attached to it.
Name | Description |
---|---|
IndexCollection(IObservableSource<T>) | Initializes a new instance of the IndexCollection<T> class. |
Name | Description |
---|---|
Count | Gets the number of indexes in the collection. |
this[LambdaExpression] | Gets the index with the specified key selector. |
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. |