JetBrains / ExternalAnnotations

JetBrains ReSharper External Annotations
https://www.jetbrains.com/help/resharper/Code_Analysis__External_Annotations.html
MIT License
81 stars 44 forks source link

HttpRouteValueDictionary - Fix false positive "Content of collection '...' is never updated" warning #163

Closed johnradke closed 5 years ago

johnradke commented 5 years ago

Add [CollectionAccess(CollectionAccessType.ModifyExistingContent)] attribute to the System.Web.Http.Routing.HttpRouteValueDictionary(object values) constructor to prevent the "Content of collection '...' is never updated" warning, since that constructor will (generally) populate the dictionary with items.