Fork me on GitHub
TypeName StringFormatAnalyzer
Check Id CC0048
Category Style
Severity Info

Cause

A call to String.Format that does not use the IFormatProvider overload.

Example

var s = string.Format("{0} is {1}", noun, adjective);

Code fix

A code fix will be presented to you that will transform the code:

var s = $"{noun} is {adjective}";

Code fix for string interpolation

Related rules

None

See also

TBD