the question is really simple. How do we format strings in C#? this way:
string.Format(\"string goes here with placeholders like {0} {1}\", firstName, lastN
Yes it is possible:
public static class StringFormatExtensions {
public static string Format(this string formatStr, params object[] args) {
return string.Format(formatStr, args);
}
}
It would be good to add overloads for cases of one and two arguments.
Overall however, I don't see much value to this.