[]
Throws an exception if collection already contains item with specified key.
public virtual void CheckKey(TItem item, TKey oldKey, TKey newKey)
| Type | Name | Description |
|---|---|---|
| TItem | item | The item to check. |
| TKey | oldKey | The old key. |
| TKey | newKey | The new key. |