ThreadAttributes.cs 782 B

12345678910111213141516171819202122232425262728
  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. /*=============================================================================
  5. **
  6. ** Purpose: For Threads-related custom attributes.
  7. **
  8. =============================================================================*/
  9. namespace System
  10. {
  11. [AttributeUsage(AttributeTargets.Method)]
  12. public sealed class STAThreadAttribute : Attribute
  13. {
  14. public STAThreadAttribute()
  15. {
  16. }
  17. }
  18. [AttributeUsage(AttributeTargets.Method)]
  19. public sealed class MTAThreadAttribute : Attribute
  20. {
  21. public MTAThreadAttribute()
  22. {
  23. }
  24. }
  25. }