Home
last modified time | relevance | path

Searched refs:TKey (Results 1 – 6 of 6) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Collections/
DSerializableWeakKeyDictionary.cs17 …public class SerializableWeakKeyDictionary<TKey, TValue> : IDictionary<TKey, TValue> where TKey : …
21 public void Add(TKey key, TValue value) in Add()
30 public bool ContainsKey(TKey key) in ContainsKey()
36 TKey lkey; in ContainsKey()
42 public bool Remove(TKey key) in Remove()
48 TKey lkey; in Remove()
55 public bool TryGetValue(TKey key, out TValue value) in TryGetValue()
63 public TValue this[TKey index]
94 public ICollection<TKey> Keys
102 TKey target;
[all …]
DSerializableWeakDictionary.cs17 public class SerializableWeakDictionary<TKey, TValue> : IDictionary<TKey, TValue>
25 public void Add(TKey key, TValue value) in Add()
29 List<TKey> currentKeys; in Add()
41 public bool ContainsKey(TKey key) in ContainsKey()
49 public bool Remove(TKey key) in Remove()
53 List<TKey> currentKeys; in Remove()
67 public bool TryGetValue(TKey key, out TValue value) in TryGetValue()
71 List<TKey> currentKeys; in TryGetValue()
85 public TValue this[TKey key]
100 List<TKey> currentKeys;
[all …]
DMultiValueDictionary.cs24 …public class MultiValueDictionary<TKey, TValue> : IEnumerable<TValue> where TValue : IEquatable<TV…
28 multiple = new Dictionary<TKey,List<TValue>>(); in MultiValueDictionary()
29 single = new Dictionary<TKey,TValue>(); in MultiValueDictionary()
42 public void Add(TKey key, TValue value) in Add()
62 public void AddRange(TKey key, IEnumerable<TValue> values) in AddRange()
89 public bool Remove(TKey key) in Remove()
99 public bool Remove(TKey key, TValue value) in Remove()
125 public bool TryGetValue(TKey key, out IReadOnlyCollection<TValue> values) in TryGetValue()
147 public bool ContainsKey(TKey key) in ContainsKey()
157 public bool Contains(TKey key) in Contains()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DLRUCache.cs13 public class LRUCache<TKey, TVal>
19 values = new Dictionary<TKey, CacheItem>(); in LRUCache()
20 ordering = new LinkedList<TKey>(); in LRUCache()
24 public bool TryGetValue(TKey key, out TVal value) in TryGetValue()
42 public void Add(TKey key, TVal value) in Add()
72 private readonly Dictionary<TKey, CacheItem> values;
73 private readonly LinkedList<TKey> ordering;
78 public LinkedListNode<TKey> Position;
DMisc.cs506 …tatic IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSourc… in DistinctBy()
507 IEqualityComparer<TKey> comparer = null) in DistinctBy()
517 var knownKeys = new HashSet<TKey>(comparer); in DistinctBy()
576 …public static TValue GetOrDefault<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> @this, TKey in GetOrDefault() argument
581 …public static TValue GetOrDefault<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> @this, TKey in GetOrDefault() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Config/
DSimpleJson.cs1922 public class SafeDictionary<TKey, TValue>
1925 private readonly Dictionary<TKey, TValue> _dictionary = new Dictionary<TKey, TValue>();
1927 public bool TryGetValue(TKey key, out TValue value) in TryGetValue()
1932 public TValue this[TKey key]
1937 public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() in GetEnumerator()
1939 return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).GetEnumerator(); in GetEnumerator()
1942 public void Add(TKey key, TValue value) in Add()