PostSharpAPI ReferencePost­Sharp.​Aspects.​Internals.​State­MachineBase­Generated­Iterator­State­Machine<TElement>Dispose
Open sandboxFocus

BaseGeneratedIteratorStateMachine<TElement>.Dispose Method

Dispose()

Disposes the decorated enumerator and calls OnSuccess and OnExit, if OnEntry was called but OnExit wasn't yet called.

Declaration
public void Dispose()