Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 786 Bytes

RR0201.md

File metadata and controls

29 lines (19 loc) · 786 Bytes

Convert interpolated string to 'string.Format'

Property Value
Id RR0201
Title Convert interpolated string to '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)