给定以下类型声明:
TMyEnum = (onehundred,twohundred,threehundred);
TMyEnum2 = (Aonehundred = 100 , Atwohundred = 200 , Athreehundred = 300);
TMyComponent = class(TComponent)
private
FMyEnum: TMyEnum;
FMyEnum2: TMyEnum2;
published
property MyEnum: TMyEnum read FMyEnum write FMyEnum;
property MyEnum2: TMyEnum2 read FMyEnum2 write FMyEnum2;
end;
使用 TStream.WriteComponent 不会流式传输 MyEnum2。有谁知道这是为什么,如果可以解决?