Total .NET Analyzer Rule Documentation |
|
Consider replacing hard-coded literal strings with constants.
Remarks
Consider using a constant or a localized resource instead of a hard-coded literal string. Using literal strings can make your code hard to read, maintain, and update.
Resolution
Whenever possible, you should replace hard-coded literal strings with constants or localized resources.
(Note that although this rule may be flagged for auto-generated code, such as AssemblyInfo files, you can safely ignore it when hard-coded literal strings are acceptable.)
See Also
Literals
String Literals
Constants