BagTable - Description

The generic class BagTable is an unordered table. The generic has two type parameters, K - the key type, and T - the data type. The data type T contains an embedded key. The key type K is provided for separate keyed searches.

When creating a table BagTable<K,T>, both the key class K and the data class T are expected to be equatable. These classes can derive from the appropriate IEquatable interface or comparers can be explicitly specified through a constructor.

The declaration of the table class (in C#) is shown below.

public class BagTable<K, T> : UnorderedBag<T>

The class BagTable derives from the class UnorderedBag. All the events, properties, operators and methods of UnorderedBag apply to unordered tables.