是否有一种方法或简单的方法可以将一个 TDictionary 内容复制到另一个?假设我有以下声明
type
TItemKey = record
ItemID: Integer;
ItemType: Integer;
end;
TItemData = record
Name: string;
Surname: string;
end;
TItems = TDictionary<TItemKey, TItemData>;
var
// the Source and Target have the same types
Source, Target: TItems;
begin
// I can't find the way how to copy source to target
end;
我想将 Source 1:1 复制到 Target。有这样的方法吗?
谢谢!