Pat Mustard Pat Mustard - 1 year ago 124
C# Question

C# List of Dictionary

I want to map some C++ to C# via CLI/C++. In C++ I have a

which I thought I could represent in .Net as
. However, this gives me errors.

List<Dictionary<String,String>> // is not a valid generic argument

Is there a standard alternative?

Note I'm implementing this in CLI/C++.

Answer Source

It turns out that I need to pass handles to generic containers:

List<Dictionary<String^, String^>^>^ list_of_dict_of_string;

Thanks, all.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download