PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Internals.​State­Machine Namespace / Base­Generated­Iterator­State­Machine(TElement) Class / Base­Generated­Iterator­State­Machine(TElement) Methods / Base­Generated­Iterator­State­Machine(TElement).​Move­Next Method

BaseGeneratedIteratorStateMachine<TElement>.MoveNext Method

Advances this (as an enumerator) to the next element by calling MoveNext() on the decorated enumerator, then accesses its Current and stores it, so that it can be read and modified by OnYield(MethodExecutionArgs) advices.

Namespace:  PostSharp.Aspects.Internals.StateMachine
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public virtual bool MoveNext()

Return Value

Type: Boolean
Whatever the decorated enumerator returns.

Implements

IEnumerator.MoveNext()
See Also