ICollection Interface
Definition
Non generic interface for adding items to a collection - this can be used for serialization.
Delphi
type ICollection = interface(IEnumerable)
- Inheritance
- Derived
Properties
| Count |
Returns the number of elements in a sequence. (Inherited from IEnumerable) |
| ElementType |
Returns the type of the elements in the sequence. (Inherited from IEnumerable) |
| IsEmpty |
Determines whether the sequence contains no elements. (Inherited from IEnumerable) |
Methods
| Add(TValue) |
Adds an item to the collection. |
| AsObject |
Returns the reference to this instance. (Inherited from IEnumerable) |
| Clear |
Removes all items from the collection. |
| GetCount | (Inherited from IEnumerable) |
| GetElementType | (Inherited from IEnumerable) |
| GetEnumerator |
Returns an enumerator that iterates through a collection. (Inherited from IEnumerable) |
| GetIsEmpty | (Inherited from IEnumerable) |
| GetNonEnumeratedCount |
Attempts to retrieve the count without calling the enumerator; returns -1 otherwise. (Inherited from IEnumerable) |