Click or drag to resize

RankedMapTKey, TValueKeyCollection Class

Inheritance Hierarchy
SystemObject
  Kaos.CollectionsRankedMapTKey, TValueKeyCollection

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public sealed class KeyCollection : ICollection<TKey>, 
	IEnumerable<TKey>, IEnumerable, ICollection, IReadOnlyCollection<TKey>

The RankedMapTKey, TValueKeyCollection generic type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of keys in the collection.
Public propertyItem
Gets the key at the supplied index.
Top
Methods
  NameDescription
Public methodContains
Determines whether the map contains the supplied key.
Public methodCopyTo
Copies keys to a supplied array, starting at the supplied position.
Public methodDistinct
Returns an enumerator that iterates thru the distinct map keys in sort order.
Public methodElementAt
Gets the key at the supplied index.
Public methodElementAtOrDefault
Gets the key at the supplied index or the default if the index is out of range.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFirst
Gets the minimum key in the map per the comparer.
Public methodCode exampleGetCount
Returns the number of elements with the supplied key in the map.
Public methodCode exampleGetDistinctCount
Returns the number of distinct keys in the map.
Public methodGetEnumerator
Gets an enumerator that iterates thru the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Gets the index of the first occurrence of supplied key.
Public methodLast
Gets the maximum key in the map per the comparer.
Public methodReverse
Returns an enumerator that iterates thru the map keys in reverse order.
Public methodCode exampleSkip
Bypasses a supplied number of keys and yields the remaining keys.
Public methodSkipWhile(FuncTKey, Boolean)
Bypasses keys as long as a supplied condition is true and yields the remaining keys.
Public methodSkipWhile(FuncTKey, Int32, Boolean)
Bypasses keys as long as a supplied index-based condition is true and yields the remaining keys.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetGreaterThan
Gets the least key greater than the supplied key.
Public methodTryGetGreaterThanOrEqual
Gets the least key greater than or equal to the supplied key.
Public methodTryGetLessThan
Gets the greatest key that is less than the supplied key.
Public methodTryGetLessThanOrEqual
Gets the greatest key that is less than or equal to the supplied key.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionTKeyAdd
This implementation always throws a NotSupportedException.
Explicit interface implementationPrivate methodICollectionTKeyClear
This implementation always throws a NotSupportedException.
Explicit interface implementationPrivate methodICollectionTKeyContains
Determines whether the collection contains the supplied key.
Explicit interface implementationPrivate methodICollectionCopyTo
Copies keys to a supplied array, starting at the supplied position.
Explicit interface implementationPrivate methodIEnumerableTKeyGetEnumerator
Gets an enumerator that iterates thru the collection.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Gets an enumerator that iterates thru the collection.
Explicit interface implementationPrivate propertyICollectionTKeyIsReadOnly
Indicates that the collection is read-only.
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Indicates that the collection is not thread safe.
Explicit interface implementationPrivate methodICollectionTKeyRemove
This implementation always throws a NotSupportedException.
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the collection.
Top
See Also