Delphi (win32) serialization libraries

前端 未结 4 1875
夕颜
夕颜 2020-12-09 23:10

Are there any Delphi serialization libraries that are capable of serializing records and arrays of records instead of classes?

4条回答
  •  -上瘾入骨i
    2020-12-09 23:54

    Being a record, if you don't have properties, I don't believe you're any further ahead, trying to use any of the persistence frameworks (like DeHL).

    The accepted answer, while technically correct, is dubious in real-world utility, and has many long term support-nightmare scenarios if you use it in production. DON'T DO IT.

    If your program is just a bit of ad-hoc'ery, may I humbly suggest that you rock it old-school with a "file of record", a classic Turbo Pascal technique that still works.

提交回复
热议问题