Hi,
I have a question on the use of FGL’s TFPGMap class vs. Generics.Collections’ TDictionary.
If I add a new item or change an existing one in a TFPGMap I can use:
However when using TDictionary I have to use:
Map.AddOrSetValue(Key, Value); (2)
since I don’t know if the (Key, Value) pair is added or changed at a certain moment.
Needless to say I like (1) more.
Why this difference? Can it be changed for TDictionary? Or is it for Delphi…
Cheers