PostSharpAPI ReferencePost­Sharp.​Aspects.​Internals.​State­MachineBase­Generated­Iterator­State­Machine<TElement>Call­Target­Enumerator­Method
Open sandboxFocus

BaseGeneratedIteratorStateMachine<TElement>.CallTargetEnumeratorMethod Method

CallTargetEnumeratorMethod()

Calls the target method, possibly with some arguments changed. This method is only overridden if the target method has IEnumerator or System.Collections.Generic.IEnumerator<> as the return type.

Declaration
public virtual IEnumerator CallTargetEnumeratorMethod()
Returns
Type Description
IEnumerator

The return value of the target method; or null if the target method returns an enumerable.