RankedDictionaryTKey, TValueValueCollection Class |
Namespace: Kaos.Collections
public sealed class ValueCollection : ICollection<TValue>, IEnumerable<TValue>, IEnumerable, ICollection, IReadOnlyCollection<TValue>
The RankedDictionaryTKey, TValueValueCollection generic type exposes the following members.
Name | Description | |
---|---|---|
RankedDictionaryTKey, TValueValueCollection | Initializes a new collection that reflects the values of a RankedDictionaryTKey, TValue. |
Name | Description | |
---|---|---|
Count | Gets the number of values in the collection. | |
Item | Gets the value at the supplied index. |
Name | Description | |
---|---|---|
CopyTo | Copies values to a supplied array, starting as the supplied position. | |
ElementAt | Gets the value at the supplied index. | |
ElementAtOrDefault | Gets the value at the supplied index or the default if the index is out of range. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
First | Gets the value of the element with the minimum key in the dictionary per the comparer. | |
GetEnumerator | Gets an enumerator that iterates thru the collection. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Gets the index of the first element with the supplied value. | |
Last | Gets the value of the element with the maximum key in the dictionary per the comparer. | |
Reverse | Returns an enumerator that iterates thru the dictionary values in reverse key order. | |
Skip | Bypasses a supplied number of values and yields the remaining values. | |
SkipWhile(FuncTValue, Boolean) |
Bypasses values as long as a supplied condition is true and yields the remaining values.
| |
SkipWhile(FuncTValue, Int32, Boolean) |
Bypasses values as long as a supplied index-based condition is true and yields the remaining values.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ICollectionTValueAdd | This implementation always throws a NotSupportedException. | |
ICollectionTValueClear | This implementation always throws a NotSupportedException. | |
ICollectionTValueContains | Determines whether the dictionary contains the supplied value. | |
ICollectionCopyTo | Copies values to a supplied array, starting at the supplied position. | |
IEnumerableTValueGetEnumerator | Gets an enumerator that iterates thru the collection. | |
IEnumerableGetEnumerator | Gets an enumerator that iterates thru the collection. | |
ICollectionTValueIsReadOnly | Indicates that the collection is read-only. | |
ICollectionIsSynchronized | Indicates that the collection is not thread safe. | |
ICollectionTValueRemove | This implementation always throws a NotSupportedException. | |
ICollectionSyncRoot | Gets an object that can be used to synchronize access to the collection. |
This class emulates and extends SortedDictionaryTKey, TValueValueCollection while improving performance of operations on large collections.
Optimized instance methods with the signatures of LINQ methods have been implemented:
Indexing enhancements include: