WiseTechGlobal / WTG.Analyzers

Analyzers from WiseTech Global to enforce our styles, behaviours, and prevent common mistakes.
Other
15 stars 3 forks source link

Warn against intermediate strings that are only used to produce a derived value #177

Open yaakov-h opened 2 years ago

yaakov-h commented 2 years ago

The one that prompted me was: $"\\{text}".Length, which is just text.Length + 1 in disguise.