[]
Represents the strongly typed collection of INamedObject objects. Provides methods and properties to search and access items using the Name property of the INamedObject object.
public class NamedObjectCollection<T> : CollectionBase<T>, IList, ICollection, IEnumerable where T : INamedObject
Public Class NamedObjectCollection(Of T As INamedObject)
Inherits CollectionBase(Of T)
Implements IList, ICollection, IEnumerable
| Name | Description |
|---|---|
| T |
| Name | Description |
|---|---|
| NamedObjectCollection() | Initializes a new instance of the NamedObjectCollection<T> class. |
| NamedObjectCollection(NamedObjectCollection<T>) | Initializes a new instance of the NamedObjectCollection<T> class. |
| NamedObjectCollection(T[]) | Initializes a new instance of the NamedObjectCollection<T> class. |
| Name | Description |
|---|---|
| this[string] | Gets or sets the element with the specified name. |
| Name | Description |
|---|---|
| ContainsKey(string) | Determines whether the NamedObjectCollection<T> collection contains an item with the specified key. |
| Find(string) | Finds the item using the specified name. |
| IndexOfKey(string) | Retrieves the index of the first occurrence of the specified item within the collection. |