generic syntax problem

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I try to write the following line in a syntaxically correct way, but I can't
find it!!!

List::Enumerator<FontCache^>^ fce = fontCache->GetEnumerator();

what's the right syntax?!!?
 
oops...
I have a Dictionary<Font^, FontCache^>^ fontCache;

and I want:
Dictionary.KeyCollection.Enumerator<TKey, TValue> GetEnumerator();

but even though this is copied from the C++ section of the documentation,
that doesn't compile :-(
 
found it!!


unlike the documentation which says:
Dictionary.KeyCollection.Enumerator<TKey, TValue> GetEnumerator();


it is:
Dictionary<Font^, FontCache^>::KeyCollection::Enumerator^
 
Back
Top