Code Analysis rule "CA1710: Identifiers should have correct suffix" leads to misleading names.Particularly, the rule that classes implementing IEnumerable should have a "Collection" suffix is misleading because a 'Collection' implies more functionality than a mere Iterator. To wit: the ICollection interface adds 4 more members on top of IEnumerable.A pure IEnumerable implementation might be a Generator (i.e. an Iterator that never ends), so in this case the IColleciton.Count property is meaningless. Thus, it's misleading to name an IEnumerable implementation with a "Collection" suffix.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Locale
Please wait...