On 2011-08-22 13:27, Kagamin wrote:
Jacob Carlborg Wrote:

I already have a fully working serialization library. I'm hoping to make
it better. The problem is when (de)serializing through a base class
reference. Currently you need to register the subclass with the
serializer. If T is Base and the actually runtime type is Sub it won't work.

In .net it won't work either. You have to specify known classes explicitly.

As far as I know, this is just because they chose to do it this way, not because of limitations in the language/runtime. .Net has runtime reflection, there's no technical need to add an attribute to indicate that a class is serializable.

--
/Jacob Carlborg

Reply via email to