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^
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top