Table - Description

The generic class Table 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 Table<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 Table<K, T> : HashSet<T>

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