mscorlib 4.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Method, Inherited=false)

You should not apply the StateMachine attribute to methods in your code. For methods that are state machine methods, the compiler will apply the or in the emitted IL.

When checking whether a method is a state machine method, it is preferable to instead check for following attributes, which are derived from StateMachineAttribute:

StateMachineAttribute cannot be used to check whether a method is a state machine method if the method is an iterator method in C#.

Allows you to determine whether a method is a state machine method.

- Constructor
  4.0.0.0
  To be added.

  Initializes a new instance of the class.

  The type object for the underlying state machine type that was generated by the compiler to implement the state machine method.
- Property
  4.0.0.0
  System.Type To be added.

  This property may be useful for debuggers and reflection tools.

  Returns the type object for the underlying state machine type that was generated by the compiler to implement the state machine method.