Add analyzer for StringBuilder(char) #46103
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Runtime
code-analyzer
Marks an issue that suggests a Roslyn analyzer
Milestone
Context:
Adding a
StringBuilder(char)
constructor was originally proposed in Add StringBuilder(Char) #20848 due to the existingStringBuilder(int capacity)
constructor accepting achar
as an argument (i.e.:StringBuilder('a')
), but the proposal was finally rejected.Since this scenario will generally denote a bug, the possibility of creating an analyzer for it was brought up during the review of the proposal, but apparently was discarded or never formalized.
After opening a GH discussion about it, I was suggested in to formally propose the creation of such analyzer (StringBuilder: char constructor #46052 (comment)).
The text was updated successfully, but these errors were encountered: