Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    string interpolation uses string.format essentially .. AFAIK Commented Apr 27, 2018 at 22:17
  • From your example, it moves towards positional format. Notice that the template dictionary had {Value1} and {Value2} placeholders in different values, so they both look like {0}, but should apply different values from placeholderValues dictionary. I guess I could have Tuple<string, string[]>("{0}", new[] { "Value1" }) and then use it to prepare a formatting array. Is there a cleaner way? Commented Apr 27, 2018 at 22:25
  • I don’t think there’s a cleaner way, you must declare both the template and the object array somehow. Commented Apr 27, 2018 at 22:35