Note
The returned enumerator supports the IEnumerator.Reset method.
public IEnumerator<T> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of T)
public:
virtual IEnumerator<T>^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator<'T>
override GetEnumerator : unit -> IEnumerator<'T>
The enumeration represents a moment-in-time snapshot of the contents of the LockingCollectionT. It does not reflect any updates to the collection after GetEnumerator was called. The enumerator is safe to use concurrently with reads from and writes to the collection.
This method has an O(n) cost where n is the number of elements in the collection.