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 System.Collections.IEnumerator or IEnumerator<T> as the return type.

Declaration
public virtual IEnumerator CallTargetEnumeratorMethod()
Returns
Type Description
System.Collections.IEnumerator

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