Class LookupTable<K, V>
Inheritance
System.Object
LookupTable<K, V>
Implements
System.Collections.Generic.IDictionary<K, HashSet<V>>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<K, HashSet<V>>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<K, HashSet<V>>>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public sealed class LookupTable<K, V> : IDictionary<K, HashSet<V>>, ICollection<KeyValuePair<K, HashSet<V>>>, IEnumerable<KeyValuePair<K, HashSet<V>>>, IEnumerable
Type Parameters
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Item[K]
Declaration
public HashSet<V> this[K key] { get; set; }
Parameters
Type |
Name |
Description |
K |
key |
|
Property Value
Type |
Description |
HashSet<V> |
|
Keys
Declaration
public ICollection<K> Keys { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<K> |
|
Values
Declaration
public ICollection<HashSet<V>> Values { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<HashSet<V>> |
|
Methods
Add(K, V)
Declaration
public void Add(K key, V value)
Parameters
Type |
Name |
Description |
K |
key |
|
V |
value |
|
Add(K, HashSet<V>)
Declaration
public void Add(K key, HashSet<V> value)
Parameters
Type |
Name |
Description |
K |
key |
|
HashSet<V> |
value |
|
Add(KeyValuePair<K, HashSet<V>>)
Declaration
public void Add(KeyValuePair<K, HashSet<V>> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<K, HashSet<V>> |
item |
|
Clear()
Declaration
Contains(KeyValuePair<K, HashSet<V>>)
Declaration
public bool Contains(KeyValuePair<K, HashSet<V>> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<K, HashSet<V>> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
ContainsKey(K)
Declaration
public bool ContainsKey(K key)
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
Type |
Description |
System.Boolean |
|
CopyTo(KeyValuePair<K, HashSet<V>>[], Int32)
Declaration
public void CopyTo(KeyValuePair<K, HashSet<V>>[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<K, HashSet<V>>[] |
array |
|
System.Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<K, HashSet<V>>> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<K, HashSet<V>>> |
|
Remove(K)
Declaration
public bool Remove(K key)
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Remove(KeyValuePair<K, HashSet<V>>)
Declaration
public bool Remove(KeyValuePair<K, HashSet<V>> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<K, HashSet<V>> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
TryGetValue(K, out HashSet<V>)
Declaration
public bool TryGetValue(K key, out HashSet<V> value)
Parameters
Type |
Name |
Description |
K |
key |
|
HashSet<V> |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable