System.Net vs. System.Web. What is the difference?

One of the things I noticed but still haven't officially asked is: What is the difference between the classes in the System.Net namespace and the System.Web namespace? Why do they both exist? They seem to have different implementations of the same classes / concepts (e.g. Cookie, Mail, HttpWebRequest). Are they intended to be used for slightly different purposes? Or is it a pre-existing namespace?

+3


source to share


1 answer


This follows natural segregation between client and server applications. System.Web is (almost) exclusively used by .NET applications that implement the server. As an ASP.NET application. It differs by the absence of a client infrastructure profile. System.Net contains classes useful for the client application.



+4


source







All Articles