System\Diagnostics\ActivityTagsCollection.cs (22)
63return index < 0 ? null : _list[index].Value;
75_list.RemoveAt(index);
82_list[index] = new KeyValuePair<string, object?>(key, value);
86_list.Add(new KeyValuePair<string, object?>(key, value));
98List<string> list = new List<string>(_list.Count);
99foreach (KeyValuePair<string, object?> kvp in _list)
114List<object?> list = new List<object?>(_list.Count);
115foreach (KeyValuePair<string, object?> kvp in _list)
131public int Count => _list.Count;
149_list.Add(new KeyValuePair<string, object?>(key, value));
169_list.Add(item);
175public void Clear() => _list.Clear();
177public bool Contains(KeyValuePair<string, object?> item) => _list.Contains(item);
191public void CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex) => _list.CopyTo(array, arrayIndex);
196IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator() => new Enumerator(_list);
201public Enumerator GetEnumerator() => new Enumerator(_list);
206IEnumerator IEnumerable.GetEnumerator() => new Enumerator(_list);
220_list.RemoveAt(index);
232public bool Remove(KeyValuePair<string, object?> item) => _list.Remove(item);
245value = _list[index].Value;
261for (int i = 0; i < _list.Count; i++)
263if (_list[i].Key == key)