Interface IKeyedCollection<TKey, TItem>
Syntax
public interface IKeyedCollection<TKey, TItem> : ICollection<TItem>, IEnumerable<TItem>, IEnumerable
Type Parameters
Name |
Description |
TKey |
|
TItem |
|
Properties
Item[TKey]
Declaration
TItem this[TKey key] { get; }
Parameters
Type |
Name |
Description |
TKey |
key |
|
Property Value
Item[Int32]
Declaration
TItem this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
Contains(TKey)
Declaration
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Remove(TKey)
Declaration
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
TryGetValue(TKey, out TItem)
Declaration
bool TryGetValue(TKey key, out TItem value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TItem |
value |
|
Returns
Extension Methods