Open xPaw opened 4 years ago
Would this cover Dictionary<string, T>(StringComparer)
also?
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to this area: @tannergooding See info in area-owners.md if you want to be subscribed.
Author: | xPaw |
---|---|
Assignees: | - |
Labels: | `area-System.Runtime`, `code-analyzer`, `untriaged` |
Milestone: | - |
As per @StingyJack question: it would save so many case-sensitivity bugs in code to have this rule cover Dictionary
's constructor...
Great idea!
Analyzer package
Microsoft.CodeAnalysis.FxCopAnalyzers
Package Version
v2.9.5 (Latest)
There are CA1304, CA1305, CA1307 rules which warn about specifying CultureInfo, IFormatProvider, StringComparison.
There is no rule to warn about
StringComparer
, which also has different behaviours depending on current locale, for example inOrderBy
andThenBy
LINQ methods.