PostSharpAPI ReferencePost­Sharp.​ReflectionReflection­ExtensionsGet­State­Machine­Kind
Open sandboxFocus

ReflectionExtensions.GetStateMachineKind Method

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.