Class MultiValueDictionary<TKey, TValue, TCollection>
- Namespace
- Core.Collections
- Assembly
- Core.dll
public class MultiValueDictionary<TKey, TValue, TCollection> : IReadOnlyMultiValueDictionary<TKey, TValue, TCollection> where TValue : IEquatable<TValue> where TCollection : class, ICollection<TValue>, IReadOnlyCollection<TValue>
Type Parameters
TKey
TValue
TCollection
- Inheritance
-
object
MultiValueDictionary<TKey, TValue, TCollection>
- Implements
-
- Derived
-
- Extension Methods
-
Constructors
MultiValueDictionary(Func<TCollection>, Action<TCollection>, bool)
public MultiValueDictionary(Func<TCollection> activator, Action<TCollection> deactivator, bool fastAllValuesLookup = false)
Parameters
activator Func<TCollection>
deactivator Action<TCollection>
fastAllValuesLookup bool
MultiValueDictionary(Func<TCollection>, bool)
public MultiValueDictionary(Func<TCollection> activator, bool fastAllValuesLookup = false)
Parameters
activator Func<TCollection>
fastAllValuesLookup bool
Properties
this[TKey]
public TCollection this[TKey key] { get; }
Parameters
key TKey
Property Value
- TCollection
KeyCount
public int KeyCount { get; }
Property Value
- int
Keys
public ICollection<TKey> Keys { get; }
Property Value
- ICollection<TKey>
Values
public ICollection<TCollection> Values { get; }
Property Value
- ICollection<TCollection>
Methods
AddValue(TKey, TValue)
public void AddValue(TKey key, TValue value)
Parameters
key TKey
value TValue
AllValues()
public IEnumerable<TValue> AllValues()
Returns
- IEnumerable<TValue>
Clear()
ContainsKey(TKey)
public bool ContainsKey(TKey key)
Parameters
key TKey
Returns
- bool
ContainsValue(TKey, TValue)
public bool ContainsValue(TKey key, TValue value)
Parameters
key TKey
value TValue
Returns
- bool
Dispose()
GetEnumerator()
public IEnumerator GetEnumerator()
Returns
- IEnumerator
RemoveKey(TKey)
public bool RemoveKey(TKey key)
Parameters
key TKey
Returns
- bool
RemoveValue(TKey, TValue)
public bool RemoveValue(TKey key, TValue value)
Parameters
key TKey
value TValue
Returns
- bool
TryGetExistingValue(TKey, TValue, out TValue)
public bool TryGetExistingValue(TKey key, TValue valueToCompare, out TValue existingValue)
Parameters
key TKey
valueToCompare TValue
existingValue TValue
Returns
- bool
TryGetValuesForKey(TKey, out TCollection)
public bool TryGetValuesForKey(TKey key, out TCollection values)
Parameters
key TKey
values TCollection
Returns
- bool
ValueCount()
Returns
- int