Skip to content

Add Support for Serializing TStringList #1

@kralo

Description

@kralo

There currently is no support for serializing a tkMethod, like the FOnChange/ of a TStringList.

As a starter, in DeHL.Types.pas around 5114, you could do
// WARNING: dangerous hack to skip serializing TStringList Methods if (AField.Name = 'FOnChange') or (AField.Name = 'FOnChanging') then Exit(true);
to skip the fields. Better would be to add proper support in MethodType.DoSerialize.

Todo:
[ ] Write a test case that test an object with one member of type TStringList
[ ] Implement support

EDIT: Sh**, sorry. Wanted to add the Issue to my fork for own reference. Any chance to move it there? Or simply delete...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions