Reinject dependencies of a freshly deserialized object

Posted by NathanE on Stack Overflow See other posts from Stack Overflow or by NathanE
Published on 2010-04-20T13:47:02Z Indexed on 2010/04/20 14:03 UTC
Read the original article Hit count: 181

If a program has literally just deserialized an object (doesn't really matter how, but just say BinaryFormatter was used).

What is a good design to use for re-injecting the dependencies of this object?

Is there a common pattern for this?

I suppose I would need to wrap the Deserialize() method up to act as a factory inside the container.

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about ioc-container