System::Collections::CollectionBase class

CollectionBase class

Provides an abstract base class for a strongly typed collection.

template<typename T>class CollectionBase : public virtual System::Collections::Generic::IEnumerable<T>
ParameterDescription
TType of elements of the collection

Nested classes

Methods

MethodDescription
Clear()Removes all objects from the collection instance. This method cannot be overridden.
get_Capacity()Returns the number of elements that the collection can contain.
get_Count()Returns the number of elements contained in the collection instance. This method cannot be overridden.
GetEnumerator() overrideReturns an enumerator that iterates through the collection instance.
RemoveAt(int32_t)Removes the element at the specified index of the collection instance. This method is not overridable.
set_Capacity(int32_t)Sets the number of elements that the collection can contain.
SetTemplateWeakPtr(uint32_t) overrideSet n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

See Also