How do I declare a TDictionary enumerator?
I've got a TDictionary<String, TMyObject> that stores a bunch of objects indexed by name, and I'd like to be able to examine all of the objects.  So I tried this:

    var enumerator: TMyObject;
    begin
       for enumerator in myDictionary do

But that wouldn't compile. "Incompatible types: 'TMyObject' and 'TPair<System.string,TMyObject>'

So I tried it a bit differently:

    var enumerator: TPair<string, TMyObject>;

That didn't compile either.  This error message is even stranger: Incompatible types: 'TPair<System.string,myUnit.TMyObect>' and 'TPair<System.string,TMyObject>'

So apparently I need some sort of funky grammar to enumerate my dictionary with a **for .. in** loop.  Anyone know how to declare it properly?
How do I declare a TDictionary enumerator?
===

I've got a TDictionary<String, TMyObject> that stores a bunch of objects indexed by name, and I'd like to be able to examine all of the objects.  So I tried this:

    var enumerator: TMyObject;
    begin
       for enumerator in myDictionary do

But that wouldn't compile. "Incompatible types: 'TMyObject' and 'TPair<System.string,TMyObject>'

So I tried it a bit differently:

    var enumerator: TPair<string, TMyObject>;

That didn't compile either.  This error message is even stranger: Incompatible types: 'TPair<System.string,myUnit.TMyObect>' and 'TPair<System.string,TMyObject>'

So apparently I need some sort of funky grammar to enumerate my dictionary with a **for .. in** loop.  Anyone know how to declare it properly?