AsyncMethodBuilderAttribute.cs 779 B

1234567891011121314151617181920
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Runtime.CompilerServices
  5. {
  6. /// <summary>
  7. /// Attribute to decorate a task-like type to specify a compatible asynchronous method builder.
  8. /// </summary>
  9. internal sealed class AsyncMethodBuilderAttribute : Attribute
  10. {
  11. /// <summary>
  12. /// Creates a new instance of the attribute using the specified <paramref name="type"/>.
  13. /// </summary>
  14. /// <param name="type">The type implementing the asynchronous method builder.</param>
  15. public AsyncMethodBuilderAttribute(Type type)
  16. {
  17. }
  18. }
  19. }