URL的Path.Combine吗?
问题: Path.Combine is handy, but is there a similar function in the .NET framework for URLs ? Path.Combine 很方便,但是.NET框架中是否有用于 URL 的类似功能? I'm looking for syntax like this: 我正在寻找这样的语法: Url.Combine("http://MyUrl.com/", "/Images/Image.jpg") which would return: 这将返回: "http://MyUrl.com/Images/Image.jpg" 解决方案: 参考一: https://stackoom.com/question/1Yzx/URL的Path-Combine吗 参考二: https://oldbug.net/q/1Yzx/Path-Combine-for-URLs 来源: oschina 链接: https://my.oschina.net/u/4438370/blog/4310300