Open sandboxFocus

Method GetStateMachineKind

GetStateMachineKind(MethodInfo)

Gets the kind of state machine (for example, Async, Iterator or None) that implements a given method.

Declaration
public static StateMachineKind GetStateMachineKind(this MethodInfo method)
Parameters
Type Name Description
MethodInfo method

A method.

Returns
Type Description
StateMachineKind

A StateMachineKind value, or None if method is not implemented by a state machine.