Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use TDictionary?

By using Google I have found some nice snippets of example code for using TDictionary in Delphi, but have not been able to compile any of them.

I use Delphi 2009 Update 1,2,3,4.

When I write this:

var Dic: TDictionary<Integer,string>;

I get "Unknown idenitifier TDictionary<,>"

How to use them?

like image 812
Ivan Prodanov Avatar asked Jul 18 '09 23:07

Ivan Prodanov


1 Answers

Have you added Generics.Collections to your uses list?

like image 56
Mason Wheeler Avatar answered Nov 10 '22 09:11

Mason Wheeler