From along time i need to ask a question which shouldn't be but please its things around on humans head.
Why MVC has different implementation for Server, Respone, etc that WebForms ?
In MVC depends on :
- MVC Session HttpSessionStateBase -> came from System.Web
- MVC Server HttpServerUtilityBase
- MVC Request HttpRequestBase
- MVC Respone HttpResponseBase
- MVC Context HttpContextBase
But in WebForms :
WebForms Session HttpSessionState -> came from System.Web.SessionState
HttpServerUtility
HttpRequest
HttpResponse
HttpContext
Also in MVC the HttpContext is a property of controller. but in WebForms the HttpContext is just a static class there.
Looks like MVC put Wrappers classes for WebForms one ? or idont know.
HttpSessionStateWrapper
HttpContextWrapper
I just wondered why all of these things are different ? does the specialists who write libraries make it like these for appears nice not ugly ?