Class SizedDictionaryAsync<TKey, TValue>
- Namespace
- RisingV.Shared.Collections
- Assembly
- RisingV.Shared.dll
Represents a thread-safe dictionary with a maximum size.
public sealed class SizedDictionaryAsync<TKey, TValue> : ConcurrentDictionary<TKey, TValue>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IEnumerable where TKey : notnull
Type Parameters
TKey
TValue
- Inheritance
-
ConcurrentDictionary<TKey, TValue>SizedDictionaryAsync<TKey, TValue>
- Implements
-
IDictionary<TKey, TValue>ICollection<KeyValuePair<TKey, TValue>>IReadOnlyDictionary<TKey, TValue>IReadOnlyCollection<KeyValuePair<TKey, TValue>>IEnumerable<KeyValuePair<TKey, TValue>>
- Inherited Members
- Extension Methods
Constructors
SizedDictionaryAsync(int)
public SizedDictionaryAsync(int size)
Parameters
size
int
Methods
Add(TKey, TValue)
public void Add(TKey key, TValue value)
Parameters
key
TKeyvalue
TValue
Remove(TKey)
public bool Remove(TKey key)
Parameters
key
TKey