¿Hay un método simple o una forma fácil de copiar un contenido de TDictionary en otro? Digamos que tengo las siguientes declaraciones¿Hay una manera fácil de copiar el contenido de TDictionary en otro?
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;
y me gustaría copiar 1: 1 del origen al destino. ¿Hay tal método para esto?
Gracias!
+1 Uso TDictionary genérico bastante pero no lo sé. Gracias. – Justmade
+1 de mí también, no sabía sobre esta sobrecarga, ¡estoy tan molesto ahora mismo! -.- – ComputerSaysNo