ReadOnlyLinkedElementCollection<T>::Enumerator Structure

 

Provides an enumerator over a ReadOnlyLinkedElementCollection

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public value struct Enumerator : IEnumerator<T>, IDisposable, 
	IEnumerator

NameDescription
System_CAPS_pubpropertyCurrent

Gets currently selected role player.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodMoveNext()

Moves to the next role player in collection. Returns false if there is no next role player.

System_CAPS_pubmethodReset()

Moves enumerator to the beginning of collection.

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable::Dispose()

Releases all resources used by the current instance of the ReadOnlyLinkedElementCollection<T>::Enumerator class.

The foreach statement of the C# language (For Each in Visual Basic) hides the complexity of enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: