dotNetRDF API Documentation

HashTable(TKey,TValue) Class

NOTE: This class is now obsolete.

The HashTable class has known deficiencies in hash code collision behaviour and has been superceded by MultiDictionary which should be used instead, HashTable will be removed in subsequent releases


A Hash Table for use as in-memory storage

For a list of all members of this type, see HashTable(TKey,TValue) Members .

System.Object
   HashTable(TKey,TValue)

[Obsolete(Message=""The HashTable class has known deficiencies in hash code collision behaviour and h" + "as been superceded by MultiDictionary which should be used instead, HashTable wi" + "ll be removed in subsequent releases"", IsError=False)]
[DefaultMember(MemberName=""Item"")]
public class HashTable<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<T>, IEnumerable<T>, IEnumerable, IEnumerable<T>

Generic template parameters

TKey
Type of Keys
TValue
Type of Values

Remarks

Essentially a Dictionary which allows multiple values for each key, unlike the newer MultiDictionary this implementation is lossy since it does not store unique keys so if you have colliding keys all values associated with them are mushed together under a single key. However the advantage of the HashTable is that it transparently maps a key to an arbitrary list of values where a MultiDictionary requires the user to manage that if that want to map multiple values to a single key

Requirements

Namespace: VDS.Common

Assembly: dotNetRDF (in dotNetRDF.dll)

See Also

HashTable(TKey,TValue) Members | VDS.Common Namespace