How to use TDictionary?

Using Google, I found some useful sample code snippets for using TDictionary in Delphi, but could not compile them.

I am using Delphi 2009 Update 1,2,3,4.

When I write this:

var Dic: TDictionary<Integer,string>;

I get "Unknown identifier TDictionary <,>"

How to use them?

+5
source share
1 answer

Have you added Generics.Collections to your list ?

+17
source

All Articles