On 2012-04-17 16:44, deadalnix wrote:

I don't see any need for runtime reflection here.

If a type is serialized, at some point it have to be given to the lib

No it doesn't. Not if if you serialize through a base class reference.

class Base { ... }
class Base : Sub { ... }

Base b = new Sub;
serialize(b);

The serializer will never no anything about "Sub". Of course it's possible to register "Sub" with the serializer but that's what I'm trying to avoid in the first place.

--
/Jacob Carlborg

Reply via email to