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

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)