Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (19 sloc) 786 Bytes

Replace interpolated string with string.Format

Property Value
Id RR0201
Title Replace interpolated string with string.Format
Syntax interpolated string
Enabled by Default

Usage

Before

$"name: {name,0:f}, value: {value}"

After

string.Format("name: {0,0:f} value: {1}", name, value)

See Also

(Generated with DotMarkdown)