-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
dotnet/roslyn-analyzers
#3584Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Collectionscode-analyzerMarks an issue that suggests a Roslyn analyzerMarks an issue that suggests a Roslyn analyzercode-fixerMarks an issue that suggests a Roslyn code fixerMarks an issue that suggests a Roslyn code fixer
Milestone
Description
Find places where a concurrent collection's Count is accessed and compared to 0, then replace with IsEmpty. We should probably not special case concurrent collections but rather say if a type defines both Count and IsEmpty, callers should prefer IsEmpty when comparing count to 0.
Category: Performance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-System.Collectionscode-analyzerMarks an issue that suggests a Roslyn analyzerMarks an issue that suggests a Roslyn analyzercode-fixerMarks an issue that suggests a Roslyn code fixerMarks an issue that suggests a Roslyn code fixer