Bag - Methods

Add This method adds an element to the bag.
Add - Predicate This method adds an element to the bag with an insertion hint.
Clear This method removes all the elements of the bag.
Contains This method determines if an element resides in the bag.
Contains - Predicate This method determines if an element satisfying a predicate resides in a key range of the bag.
Equals This method determines if two bags are equal.
GetEnumerator This method returns an enumerator for the bag.
GetHashCode This method returns the hash code of the bag.
GetObjectData This method is used when serializing the bag.
Remove - Key This method removes a key range from the bag.
Remove - Predicate This method removes elements within a bag range.
Select This method searches a key range for all elements that satisfy a predicate.
Size This method returns the number of elements in a key range.
Sort This method sorts all the key ranges of the set using an IComparer.
Sort - Key This method sorts a key range of the set using an IComparer.
ToString This method generates a string representation of the bag.
Update - Predicate This method updates an element that satisfies a predicate.