ある 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;
ソースをターゲットに 1:1 でコピーしたいと思います。これにはそのような方法はありますか?
ありがとう!