• Home
  • Raw
  • Download

Lines Matching refs:TKey

69 … sealed class MapField<TKey, TValue> : IDeepCloneable<MapField<TKey, TValue>>, IDictionary<TKey, T…
72 private readonly Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>> map =
73 new Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>>();
74 …private readonly LinkedList<KeyValuePair<TKey, TValue>> list = new LinkedList<KeyValuePair<TKey, T…
82 public MapField<TKey, TValue> Clone() in Clone()
84 var clone = new MapField<TKey, TValue>(); in Clone()
110 public void Add(TKey key, TValue value) in Add()
125 public bool ContainsKey(TKey key) in ContainsKey()
142 public bool Remove(TKey key) in Remove()
145 LinkedListNode<KeyValuePair<TKey, TValue>> node; in Remove()
166 public bool TryGetValue(TKey key, out TValue value) in TryGetValue()
168 LinkedListNode<KeyValuePair<TKey, TValue>> node; in TryGetValue()
188 public TValue this[TKey key]
208 LinkedListNode<KeyValuePair<TKey, TValue>> node;
209 var pair = new KeyValuePair<TKey, TValue>(key, value);
225 …public ICollection<TKey> Keys { get { return new MapView<TKey>(this, pair => pair.Key, ContainsKey…
236 public void Add(IDictionary<TKey, TValue> entries) in Add() argument
251 public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() in GetEnumerator()
271 void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) in Add() argument
290 bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) in Contains() argument
302 …void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayI… in CopyTo() argument
313 bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) in Remove() argument
319 LinkedListNode<KeyValuePair<TKey, TValue>> node; in Remove()
352 return Equals(other as MapField<TKey, TValue>); in Equals()
380 public bool Equals(MapField<TKey, TValue> other) in Equals() argument
486 Add((TKey)key, (TValue)value); in IDictionary.Add()
491 if (!(key is TKey)) in IDictionary.Contains()
495 return ContainsKey((TKey)key); in IDictionary.Contains()
506 if (!(key is TKey)) in IDictionary.Remove()
510 Remove((TKey)key); in IDictionary.Remove()
535 if (!(key is TKey))
540 TryGetValue((TKey)key, out value);
546 this[(TKey)key] = (TValue)value;
553 private readonly IEnumerator<KeyValuePair<TKey, TValue>> enumerator;
555 internal DictionaryEnumerator(IEnumerator<KeyValuePair<TKey, TValue>> enumerator) in DictionaryEnumerator() argument
582 private readonly FieldCodec<TKey> keyCodec;
593 public Codec(FieldCodec<TKey> keyCodec, FieldCodec<TValue> valueCodec, uint mapTag) in Codec()
617 internal TKey Key { get; set; }
675 private readonly MapField<TKey, TValue> parent;
676 private readonly Func<KeyValuePair<TKey, TValue>, T> projection;
680 MapField<TKey, TValue> parent, in MapView() argument
681 Func<KeyValuePair<TKey, TValue>, T> projection, in MapView() argument