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).​Dispose Method

BaseGeneratedIteratorStateMachine<TElement>.Dispose Method

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

Namespace:  PostSharp.Aspects.Internals.StateMachine
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public void Dispose()

Implements

IDisposable.Dispose()
See Also