有一个类TPerson.众所周知,FSecondName对每个对象都是唯一的.
type TPerson = class(TObject) private FAge: Integer; FFirstName: String; FSecondName: String; public property Age: Integer read FAge; property FirstName: String read FFirstName; property SecondName: String read FSecondName; constructor Create; end;
如何添加类字段(如C#中的静态字段)Persons:TDictionary(String,TPerson),其中键是SecondName,值是类TPerson的对象.@H_403_5@
谢谢!@H_403_5@