For compatibility reasons (objects are serialized and exported and must match external names) I would like the field name to be "type", i.e.
TTBaseWebResponse = class private type: String; success: Integer; end; or TTBaseWebResponse = class private ftype: String; fsuccess: Integer; public type: string read fstring write fstring; success: integer read fsuccess write fsuccess; end;
Delphi (XE2) won't even compile this. Is it even possible? How?
delphi
Jan doggen
source share