Here's the deal:
public
This Factory is thread safe (right?) BUT Are XmlSerializer instances ThreadSafe? The MSDN Documentation gives the standard cop-out answer "They aren't explicitly Thread Safe..." (which means they weren't written to be, but also weren't written NOT to be)
So, to make sure I cover the case when someone is deserializing the same type of object using the SAME instance of a deserializer on multiple threads, I've been doing this:
XmlSerializer xs2 = XmlSerializerFactory.GetSerializer(
Is the lock{} needed? Am I being paranoid? Mr. Purdy? Bueller?
Ads by The Lounge