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.
23 lines
700 B
23 lines
700 B
5 years ago
|
#if NET20 || NET30 || NET35 || NET40 || !NET_4_6
|
||
|
|
||
|
namespace System.Runtime.CompilerServices
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Identities the async state machine type for this method.
|
||
|
/// </summary>
|
||
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||
|
[Serializable]
|
||
|
public sealed class AsyncStateMachineAttribute : StateMachineAttribute
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Initializes the attribute.
|
||
|
/// </summary>
|
||
|
/// <param name="stateMachineType">The type that implements the state machine.</param>
|
||
|
public AsyncStateMachineAttribute(Type stateMachineType)
|
||
|
: base(stateMachineType)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|