Strings interpolation in C#
Forums:
var fontSize = 14;
var fontFamile = "Arial";
var style = string.Format(
"font-size: {0};font-family: \"{1}\"",
fontSize, fontFamile);
//style is "font-size: 14;font-family: "Arial""
- Log in to post comments