17 references to KeyCollisionBehavior
System.Collections.Immutable (17)
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 (6)
302ImmutableDictionary<TKey, TValue>.MutationResult result = Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin); 323ImmutableDictionary<TKey, TValue>.MutationResult result = Add(key, value, KeyCollisionBehavior.SetValue, this.Origin); 336ImmutableDictionary<TKey, TValue>.MutationResult result = AddRange(items, this.Origin, KeyCollisionBehavior.SetValue); 930private static MutationResult Add(TKey key, TValue value, KeyCollisionBehavior behavior, MutationInput origin) 950private static MutationResult AddRange(IEnumerable<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: