C#网址构建器类 [英] C# Url Builder Class
问题描述
我最后往往滚动我自己的包装/扩展方法/左右的System.Uri如果有人一个很好的开源实现的知道不知道。我最喜欢做的是分析查询字符串参数,建立一个新的查询字符串(这是关键),并更换网页名称。 ?有什么好的,或者说是的System.Uri配不上你。
I often end up rolling my own wrapper/extension methods for/around System.Uri and was wondering if anyone knows of a good open source implementation. What I like to do most is parse querystring parameters, build a new query string (this is the key), and replace page names. Got any good ones, or is System.Uri good enough for you?
推荐答案
BradVin的的QueryString构建器类是不错的。流利的接口和加密的支持。
BradVin's QueryString Builder class is good. Fluent interface and support for encryption.
这也是值得一试这个的 UrlBuilder 在CodeProject类。以类似的 System.UriBuilder 的具有与查询字符串工作的更好的支持。
It's also worth checking out this UrlBuilder class on CodeProject. Similar to System.UriBuilder has better support for working with the QueryString.
这篇关于C#网址构建器类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!