Why is the ObjectStateFormatter class in the System.Web.UI namespace?

╄→гoц情女王★ 提交于 2019-12-11 13:33:07

问题


Very straight forward question. As far as I can see from the MSDN page, it seems to be all about serialization and nothing to do with Web!

MSDN: ObjectStateFormatter Class


回答1:


Simpy, it is quite tightly related to PageStatePersister and a few other web assets like Triplet (which I confess I've never heard of before).

You are right in that fundamentally that class has little directly to do with web, but I can see why it would be tempting to leave it with it's siblings (with which it is designed to be used). Ultimately, though.... meh. Naming stuff (and I'll include namespaces in that) is hard...



来源:https://stackoverflow.com/questions/5701860/why-is-the-objectstateformatter-class-in-the-system-web-ui-namespace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!