我想知道.NET是否有任何类用于简化URL生成,类似于Path.Combine但是用于URL。.NET中的URL字符串生成
的功能的示例我在寻找:
string url = ClassName.Combine("http://www.google.com", "index")
.AddQueryParam("search", "hello world").AddQueryParam("pagenum", 3);
// Result: http://www.google.com/index?search=hello%20world&pagenum=3
可能重复的[C#地址生成器类(http://stackoverflow.com/questions/1759881/c-sharp-url-builder-class) – jheddings