System\Diagnostics\ActivityTagsCollection.cs (22)
66return index < 0 ? null : _list[index].Value;
81_list.RemoveAt(index);
88_list[index] = new KeyValuePair<string, object?>(key, value);
92_list.Add(new KeyValuePair<string, object?>(key, value));
104List<string> list = new List<string>(_list.Count);
105foreach (KeyValuePair<string, object?> kvp in _list)
120List<object?> list = new List<object?>(_list.Count);
121foreach (KeyValuePair<string, object?> kvp in _list)
137public int Count => _list.Count;
158_list.Add(new KeyValuePair<string, object?>(key, value));
178_list.Add(item);
184public void Clear() => _list.Clear();
186public bool Contains(KeyValuePair<string, object?> item) => _list.Contains(item);
200public void CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex) => _list.CopyTo(array, arrayIndex);
205IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator() => new Enumerator(_list);
210public Enumerator GetEnumerator() => new Enumerator(_list);
215IEnumerator IEnumerable.GetEnumerator() => new Enumerator(_list);
232_list.RemoveAt(index);
244public bool Remove(KeyValuePair<string, object?> item) => _list.Remove(item);
257value = _list[index].Value;
273for (int i = 0; i < _list.Count; i++)
275if (_list[i].Key == key)