## Collection::GetEnumerator method


Gets enumerator to iterate through collection.

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


### ReturnValue

Created enumerator iterating through current collection.

## See Also

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