CollectionBaseT Methods |
The CollectionBaseT generic type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add |
Must be overridden to allow adding items to this collection.
|
![]() | AsReadOnly |
Provides a read-only view of this collection. The returned ICollection<T> provides
a view of the collection that prevents modifications to the collection. Use the method to provide
access to the collection without allowing changes. Since the returned object is just a view,
changes to the collection will be reflected in the view.
|
![]() | Clear |
Must be overridden to allow clearing this collection.
|
![]() | Contains |
Determines if the collection contains a particular item. This default implementation
iterates all of the items in the collection via GetEnumerator, testing each item
against item using IComparable<T>.Equals or
Object.Equals.
|
![]() | ConvertAllTOutput |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
|
![]() | CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
|
![]() | CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
|
![]() | Equals | (Inherited from Object.) |
![]() | Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
|
![]() | Finalize | (Inherited from Object.) |
![]() | FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
|
![]() | ForEach |
Performs the specified action on each item in this collection.
|
![]() | GetEnumerator |
Must be overridden to enumerate all the members of the collection.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove |
Must be overridden to allow removing items from this collection.
|
![]() | RemoveAll |
Removes all the items in the collection that satisfy the condition
defined by predicate.
|
![]() | ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
|
![]() | ToString |
Shows the string representation of the collection. The string representation contains
a list of the items in the collection. Contained collections (except string) are expanded
recursively.
(Overrides ObjectToString.) |
![]() | TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
|