This is my code:
private static string AddURISlash(string remotePath) { if (remotePath.LastIndexOf("/") != remotePath.Length - 1) { remotePath += "/"; } return remotePath; }
But I need something like
AddURISlash("http://foo", "bar", "baz/", "qux", "etc/");
If I remember correctly, string.format is something like this ...
String.Format("{0}.{1}.{2}.{3} at {4}", 255, 255, 255, 0, "4 pm");
Is there anything in C # that allows me to do this?
I know what I could do
private static string AddURISlash(string[] remotePath)
but this is not an idea.
If this is something in some frameworks, it is possible to do, but in others not to indicate how to resolve it.
Thanks in advance
source share