Skip to content

Conversation

@Meir017
Copy link
Contributor

@Meir017 Meir017 commented Sep 13, 2025

  • Document that CA2259 (ThreadStatic only affects static fields) is equivalent to MA0033
  • CA2259 was introduced in .NET 7 as the official Microsoft equivalent
  • Both rules detect ThreadStaticAttribute applied to instance fields

Closes #845

- Document that CA2259 (ThreadStatic only affects static fields) is equivalent to MA0033
- CA2259 was introduced in .NET 7 as the official Microsoft equivalent
- Both rules detect ThreadStaticAttribute applied to instance fields

Closes meziantou#845
@Meir017 Meir017 requested a review from meziantou as a code owner September 13, 2025 20:22
@Meir017
Copy link
Contributor Author

Meir017 commented Sep 13, 2025

closed in favor of #871

@Meir017 Meir017 closed this Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MA0033 - Do not tag instance fields with ThreadStaticAttribute is handled by CA2259

1 participant