Path.Combine is handy, but there is no similar function in the .NET framework for combining Url or Uri.
This project has one class Uri.cs which allows combining multiple parts to make a safe (encoded) Uri.

Uri.Combine("http://google.com/", "/some/file.doc"); // combining 2 parts 
Uri.Combine("ftp://google.com/some", "/file", ".doc"); // combining 3 parts
Uri.Combine("/some", "/file.doc"); // combining relative urls


This project is a straight answer to the Stack Overflow question Path.Combine for Urls?.


Happy combining url's.


Additional works are published on my blog http://believeblog.azurewebsites.net/

Last edited Jun 1, 2014 at 2:37 PM by Believe2014, version 17