Click or drag to resize

RankedBagT Methods

The RankedBagT generic type exposes the following members.

Methods
  NameDescription
Public methodAdd(T)
Adds an item to the bag.
Public methodAdd(T, Int32)
Adds a supplied number of occurrences of the supplied item to the bag.
Public methodClear
Removes all items from the bag.
Public methodContains
Determines whether the bag contains the supplied item.
Public methodContainsAll
Determines whether the bag is a subset of the supplied collection.
Public methodCopyTo(T)
Copies the items to a compatible array.
Public methodCopyTo(T, Int32)
Copies the items to a compatible array, starting at the supplied position.
Public methodCopyTo(T, Int32, Int32)
Copies a supplied number of items to a compatible array, starting at the supplied position.
Public methodDistinct
Returns an enumerator that iterates thru the distinct items of the bag in sort order.
Public methodElementAt
Gets the item at the supplied index.
Public methodElementAtOrDefault
Gets the item at the supplied index or the default if the index is out of range.
Public methodCode exampleElementsBetween
Returns an enumerator that iterates over a range with the supplied bounds.
Public methodElementsBetweenIndexes
Returns an enumerator that iterates over a range with the supplied index bounds.
Public methodElementsFrom
Returns an enumerator that iterates over a range with the supplied lower bound.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFirst
Gets the minimum item in the bag per the comparer.
Public methodGetCount
Returns the number of occurrences of the supplied item in the bag.
Public methodGetDistinctCount
Returns the number of distinct items in the bag.
Public methodGetEnumerator
Returns an enumerator that iterates thru the bag.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetObjectData
Returns the data needed to serialize the bag.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Gets the index of the first occurrence of the supplied item.
Public methodLast
Gets the maximum item in the bag per the comparer.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDeserialization
Implements the deserialization callback and raises the deserialization event when completed.
Public methodRemove(T)
Removes all occurrences of the supplied item from the bag.
Public methodRemove(T, Int32)
Removes a supplied number of occurrences of the supplied item from the bag.
Public methodRemoveAll
Removes all items in the supplied collection from the bag.
Public methodRemoveAt
Removes the element at the supplied index from the bag.
Public methodRemoveRange
Removes an index range of items from the bag.
Public methodRemoveWhere
Removes all elements that match the condition defined by the supplied predicate from the bag.
Public methodCode exampleRetainAll
Removes any elements that are not in the supplied collection from the bag.
Public methodReverse
Returns an IEnumerable that iterates thru the bag in reverse sort order.
Public methodCode exampleSkip
Bypasses a supplied number of items and yields the remaining items.
Public methodSkipWhile(FuncT, Boolean)
Bypasses items as long as a supplied condition is true and yields the remaining items.
Public methodSkipWhile(FuncT, Int32, Boolean)
Bypasses elements as long as a supplied index-based condition is true and yields the remaining items.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGet
Gets the actual item for the supplied search item.
Public methodTryGetGreaterThan
Gets the least item greater than the supplied item.
Public methodTryGetGreaterThanOrEqual
Gets the least item greater than or equal to the supplied item.
Public methodTryGetLessThan
Gets the greatest item that is less than the supplied item.
Public methodTryGetLessThanOrEqual
Gets the greatest item that is less than or equal to the supplied item.
Top
Explicit Interface Implementations
See Also