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
TKeyTValue
- 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
sizeint
Methods
Add(TKey, TValue)
public void Add(TKey key, TValue value)
Parameters
keyTKeyvalueTValue
Remove(TKey)
public bool Remove(TKey key)
Parameters
keyTKey