## CollectionBase::GetEnumerator method


Returns an enumerator that iterates through the collection instance.

```cpp
SharedPtr<Generic::IEnumerator<T>> System::Collections::CollectionBase<T>::GetEnumerator() override
```


### ReturnValue

An [IEnumerator](../../ienumerator/) for the collection instance.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerator](../../../system.collections.generic/ienumerator/)
* Class [CollectionBase](../)
* Namespace [System::Collections](../../)
* Library [Aspose.TeX for C++](../../../)
