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...
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...