问题
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