Is there a single method or easy way how to copy one TDictionary content into another ? Let's say I have the following declarations
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;
and I would like to copy 1:1 the Source to Target. Is there such method for this ?
Thanks!