23 references to KeyCollisionBehavior
System.Collections.Immutable (23)
System\Collections\Immutable\ImmutableDictionary.cs (2)
83return ImmutableDictionary<TKey, TValue>.Empty.AddRange(items, ImmutableDictionary<TKey, TValue>.KeyCollisionBehavior.SetValue); 117return ImmutableDictionary<TKey, TValue>.Empty.WithComparers(keyComparer).AddRange(items, ImmutableDictionary<TKey, TValue>.KeyCollisionBehavior.SetValue);
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (2)
422ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.Add(key, value, KeyCollisionBehavior.SetValue, this.Origin); 525ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin);
System\Collections\Immutable\ImmutableDictionary_2.cs (10)
304ImmutableDictionary<TKey, TValue>.MutationResult result = Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin); 318internal ImmutableDictionary<TKey, TValue> AddRange(ReadOnlySpan<KeyValuePair<TKey, TValue>> pairs, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent) 330ImmutableDictionary<TKey, TValue>.MutationResult result = Add(key, value, KeyCollisionBehavior.SetValue, this.Origin); 343ImmutableDictionary<TKey, TValue>.MutationResult result = AddRange(items, this.Origin, KeyCollisionBehavior.SetValue); 937private static MutationResult Add(TKey key, TValue value, KeyCollisionBehavior behavior, MutationInput origin) 957private static MutationResult AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent) 983private static MutationResult AddRange(ReadOnlySpan<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (9)
140internal HashBucket Add(TKey key, TValue value, IEqualityComparer<KeyValuePair<TKey, TValue>> keyOnlyComparer, IEqualityComparer<TValue> valueComparer, KeyCollisionBehavior behavior, out OperationResult result) 153case KeyCollisionBehavior.SetValue: 156case KeyCollisionBehavior.Skip: 159case KeyCollisionBehavior.ThrowIfValueDifferent: 167case KeyCollisionBehavior.ThrowAlways: 184case KeyCollisionBehavior.SetValue: 187case KeyCollisionBehavior.Skip: 190case KeyCollisionBehavior.ThrowIfValueDifferent: 199case KeyCollisionBehavior.ThrowAlways: