Fork me on GitHub
TypeName StringRepresentationAnalyzer
Check Id CC0045
Category Refactoring
Severity Hidden

Cause

A regular string can be converted into a verbatim string. See Strings (C# Programming Guide).

Example

var myString = "c:\\SampleFolder";

Code fix

A code fix will be presented to you that will transform the code, it will convert the recular string into a verbatim string.

var myString = @"c:\SampleFolder";

Code fix

Related rules

  • CC0046 - Convert verbatim string into regular string.

See also

TBD