You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
843 B
28 lines
843 B
#if NET20 || NET30 || NET35 || NET40 || !NET_4_6 |
|
|
|
namespace System.Runtime.CompilerServices |
|
{ |
|
/// <summary> |
|
/// Identities the state machine type for this method. |
|
/// </summary> |
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] |
|
[Serializable] |
|
public class StateMachineAttribute : Attribute |
|
{ |
|
/// <summary> |
|
/// Gets the type that implements the state machine. |
|
/// </summary> |
|
public Type StateMachineType { get; private set; } |
|
|
|
/// <summary> |
|
/// Initializes the attribute. |
|
/// </summary> |
|
/// <param name="stateMachineType">The type that implements the state machine.</param> |
|
public StateMachineAttribute(Type stateMachineType) |
|
{ |
|
StateMachineType = stateMachineType; |
|
} |
|
} |
|
} |
|
|
|
#endif |