Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

New Post: ImportConstructor in class that is being serialized/deserialized

$
0
0
I incorporated MEF into a desktop application in which I serialize and deserialize the object. I use the ISerializable interface to control my binary serialization. During regular object instantiation the objects constructor is called in which it has an ImportingConstructor. How do you get MEF imports when the object is being created during deserializations using
MyObject(SerializationInfo info, StreamingContext context)?

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>