You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET 8 introduces the new InlineArrayAttribute, which is put onto a type to indicate that its sole field should be replicated the specified number of times. C# then provides automatic helpers for indexing into these types and getting at their data as spans. As a result, the field declared inside the type isn't actually referenced by the developer, and so various analyzers that warn about that end up firing false positives, e.g. IDE0044 "Add readonly modifier" and IDE0051 "Remove unused private members". Such analyzers should skip types marked as InlineArrayAttribute.
The text was updated successfully, but these errors were encountered:
.NET 8 introduces the new InlineArrayAttribute, which is put onto a type to indicate that its sole field should be replicated the specified number of times. C# then provides automatic helpers for indexing into these types and getting at their data as spans. As a result, the field declared inside the type isn't actually referenced by the developer, and so various analyzers that warn about that end up firing false positives, e.g. IDE0044 "Add readonly modifier" and IDE0051 "Remove unused private members". Such analyzers should skip types marked as InlineArrayAttribute.
The text was updated successfully, but these errors were encountered: