我想在托管C++项目中创建一个列表的KeyValuePair。下面是我使用托管C++中的通用泛型
List<KeyValuePair<String^, String^>^>^ thing;
,但我发现了以下错误的语法:
error C3225: generic type argument for 'T' cannot be 'System::Collections::Generic::KeyValuePair ^', it must be a value type or a handle to a reference type
我基本上要做到这一点(C#)
List<KeyValuePair<string, string>> thing;
但在管理C++。哦,在.Net 2.0中。任何接受者?