System.Runtime.CompilerServices.IteratorStateMachineAttribute public sealed class IteratorStateMachineAttribute : StateMachineAttribute Identities the iterator state machine type for this method. Documentation public IteratorStateMachineAttribute(Type stateMachineType) Initializes the attribute.