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>
Parameter | Description |
---|
T | Type of elements of the collection |
Nested classes
Methods
Method | Description |
---|
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() override | Returns 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) override | Set n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. |
Typedefs
Typedef | Description |
---|
Ptr | An alias for shared pointer to an instance of this class. |
See Also