8 references to InsertionBehavior
System.Collections (8)
System\Collections\Generic\OrderedDictionary.cs (8)
379bool modified = TryInsert(index: -1, key, value, InsertionBehavior.OverwriteExisting, out _); 396private bool TryInsert(int index, TKey key, TValue value, InsertionBehavior behavior, out int keyIndex) 412case InsertionBehavior.OverwriteExisting: 417case InsertionBehavior.ThrowOnExisting: 422Debug.Assert(behavior is InsertionBehavior.IgnoreInsertion, $"Unknown behavior: {behavior}"); 488TryInsert(index: -1, key, value, InsertionBehavior.ThrowOnExisting, out _); 508return TryInsert(index: -1, key, value, InsertionBehavior.IgnoreInsertion, out index); 732TryInsert(index, key, value, InsertionBehavior.ThrowOnExisting, out _);