String Interpolation Functions vs. string.Format Constants

added by DotNetKicks
12/31/2018 2:35:44 PM

2 Kicks, 564 Views

Have you ever done this, perhaps to construct a URL or something similar? I have: If we isolated the format string as constant, that suggests that we used it in multiple places and didn't want to duplicate it we isolated it for the sake of readability How do we use string constants this way when using string interpolation instead of string.Format?


0 comments