阅读背景:

缓存DataContractSerializer实例是个好主意吗?

来源:互联网 

I'm writing a windows service application that needs to serialize and deserialize XML documents repeatedly during its execution. As I need to serialize and deserialize generic types that are not known during compilation time (I don't know a priori how many types I need to serialize/deserialize) I'd like to know if it is a good idea do keep a cache of DataContractSerializer objects I instantiate for serializing and deserializing the objects.I'm writing a windows service application that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: