Interface IKeyItemCollection<T>
- Namespace
- Loehnert.Utility.Collections
- Assembly
- Loehnert.Utility.dll
Represents an interface for a collection of items that implement the IHasKey interface.
public interface IKeyItemCollection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged where T : IHasKey
Type Parameters
T
The type of elements in the collection.
- Inherited Members
- Extension Methods
Properties
this[string]
Gets the item associated with the specified key.
T this[string key] { get; }
Parameters
key
stringThe key is case and culture invariant.
Property Value
- T
The item associated with the specified key.
Methods
ContainsKey(string)
Determines whether the collection contains an element with the key
.
bool ContainsKey(string key)
Parameters
key
stringThe key to locate.
Returns
- bool
True if item is found.