How to serialize a TList of objects with Delphi

Posted on lun 20 agosto 2012 in Delphi, Delphi XE2, Embarcadero, Programming, RTTI

Some weeks ago a customer asked to me if it is possibile serialize a TList of objects. “Hey, you should use a TObjectList for this”, I said, but he absolutely needs (I dont know why) of a TList.

This is the (simple) sample code tested with Delphi XE2 Update4. Enjoy …


Continue reading