为什么同时存在System.Net.Http和System.Web.Http命名空间? [英] Why is there both a System.Net.Http and System.Web.Http namespace?
本文介绍了为什么同时存在System.Net.Http和System.Web.Http命名空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我正在研究.NET中可用的各种类库时,这只是一个简单的问题.我注意到有一个 System.Net.Http
命名空间和一个 System.Web.Http
命名空间.
Just a simple question as I'm studying the various class libraries available in .NET. I noticed that there's a System.Net.Http
namespace and a System.Web.Http
namespace.
- 两个名称空间都起什么作用?
- 创建两个看似模棱两可的命名空间的动机是什么?
- 我是否应该了解任何历史记录,或者其中一个名称空间已弃用"?
System.Net.Http , System.Web.Http >
推荐答案
System.Net.Http与网络编程有关,而System.Web.Http与网络编程有关.
System.Net.Http relates to network programming while System.Web.Http relates specifically to programming for the web.
这篇关于为什么同时存在System.Net.Http和System.Web.Http命名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文