How to serialize Delphi object

It has been a very lean and easy option of .Net to able serialize/deserialize any serializable object instance. Only closest option in Delphi is to stream the component using WriteComponent/WriteComponentRes of TStream/TWriter (used for Form storage as DFM, for example). It can be then read back using appropriate counterpart ReadComponent/ReadComponentRes. Depend on Read more…