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

Cause

A verbatim string can be converted into a regular 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 verbatim string into a regular string.

var myString = "c:\\SampleFolder";

Code fix

Related rules

  • CC0045 - Convert regular string into verbatim string.

See also

TBD