Path.Combine equivalent for URLs?

  • Thread starter Thread starter Brian Vallelunga
  • Start date Start date
B

Brian Vallelunga

Is there a way to easily combine two parts of a url? Something like
Path.Combine for system files would be perfect.

So if I have:

string s1 = "http://mydomain.com/"
string s2 = "/hello/image.jpg"

I would want the combination to not have the double '//' in the middle
that a normal concatenation would give.
 
Back
Top