我认为我需要朝着正确的方向轻推:
我有两个相同数据类型的 Tobjectlists,我想将它们连接到一个新列表中,list1 应复制到其中(未修改),然后是 list2(反向)
type
TMyListType = TobjectList<MyClass>
var
list1, list2, resList : TMyListtype
begin
FillListWithObjects(list1);
FillListWithOtherObjects(list2);
list2.reverse
//Now, I tried to use resList.Assign(list1, list2, laOr),
//but Tobjectlist has no Assign-Method. I would rather not want to
//iterate over all objects in my lists to fill the resList
end;
delphi 是否有任何内置函数可以将两个 Tobjectlist 合并为一个?