By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,645 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,645 IT Pros & Developers. It's quick & easy.

Nested Dictionary Generics + copy constructor error

P: n/a
Hi, I have a generic dictionary defined, and when I attpet to return a
reference to it via a property I get this error

error C3073: 'System::Collections::Generic::Dictionary<TKey,TVa lue>' :
ref class does not have a user-defined copy constructor

Here's the code

Dictionary<short, Dictionary<int, SessionClassItem^>^classes_;

property Dictionary<short, Dictionary<int, SessionClassItem^>^>
Dictionary<short, Dictionary<int, SessionClassItem^>^get()
return classes_;

By the way, this is in CLI. But the concept is sound in c# -CLI

Thanks in advance.

May 15 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.