Is it possible to deserialize object properties, using any of the standard serializers, without creating a new object?
Problem is, the objects in question are very complex (they can only be created by a special factory, and their types are dynamically generated at runtime), but they have some known properties, which I would like to store in external file (preferably xml, but binary is OK too), and later (possibly after application is restarted), I want stored properties to be set back to the object I provide.
It seems all the standard serializers can only generate a new object for me (which also requires a public parameterless constructor), from which I would have to manually assign all the properties. This is not much different from manual serialization, which I would like to avoid, since a set of serialized properties is quite large and is probably going to change a few times during project lifetime. At this point I'm quite close to writing my own lightweight serializer, but maybe someone could suggest a more standard way of doing such things?