Remove(TKey)
Creates a IncrementalKeyedCollection<TKey, TValue> that contains all operations already contained in the current object, plus the operation of removing an item from the collection.
Declaration
public IncrementalKeyedCollection<TKey, TValue> Remove(TKey key)Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key of the item to remove. |
Returns
| Type | Description |
|---|---|
| IncrementalKeyedCollection<TKey, TValue> | A new IncrementalKeyedCollection<TKey, TValue> with the additional remove operation. |
Remarks
This method does not modify the current instance; it returns a new instance with the combined operations.
Remove(TKey[])
Creates a IncrementalKeyedCollection<TKey, TValue> that contains all operations already contained in the current object, plus the operation of removing items from the collection.
Declaration
public IncrementalKeyedCollection<TKey, TValue> Remove(TKey[] keys)Parameters
| Type | Name | Description |
|---|---|---|
| TKey[] | keys | The keys of the items to remove. |
Returns
| Type | Description |
|---|---|
| IncrementalKeyedCollection<TKey, TValue> | A new IncrementalKeyedCollection<TKey, TValue> with the additional remove operations. |
Remarks
This method does not modify the current instance; it returns a new instance with the combined operations.
Remove(IEnumerable<TKey>)
Creates a IncrementalKeyedCollection<TKey, TValue> that contains all operations already contained in the current object, plus the operation of removing items from the collection.
Declaration
public IncrementalKeyedCollection<TKey, TValue> Remove(IEnumerable<TKey> keys)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TKey> | keys | The keys of the items to remove. |
Returns
| Type | Description |
|---|---|
| IncrementalKeyedCollection<TKey, TValue> | A new IncrementalKeyedCollection<TKey, TValue> with the additional remove operations. |
Remarks
This method does not modify the current instance; it returns a new instance with the combined operations.