PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Reflection­Extensions Class / Reflection­Extensions Methods / Reflection­Extensions.​Get­State­Machine­Public­Method Method

ReflectionExtensions.GetStateMachinePublicMethod Method

Gets the public (or kick-off) method given a MoveNext method.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public static MethodInfo GetStateMachinePublicMethod(
	this MethodInfo method
)

Parameters

method
Type: System.Reflection.MethodInfo
The move next method.

Return Value

Type: MethodInfo
The public (kick-off method) corresponding to method.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MethodInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also