动态列表< T> [英] Dynamic List<T>

查看:115
本文介绍了动态列表< T>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建动态List< String>使用C ++ \ CLI.我的词典中有几个TKey.我希望每个TKey都成为一个列表.我怎样才能做到这一点?

Is it possible to create a dynamic List<String> using C++\CLI.  I have several TKeys in my Dictionary.  I want each TKey become a List.  How can I do this?

	ref class
 CTT_Content
	{

	public
:
	static
 System::Collections::Generic::Dictionary<String^,System::Collections::
		Generic::List<System::Int32>^>^ DataList = gcnew System::Collections::
		Generic::Dictionary<String^,System::Collections::Generic::List<System::Int32>^>();
		
		
	};

推荐答案

Trioum,

Hi Trioum,

我正在将该线程从"Windows窗体"的基础上移到转换为"Visual C ++语言";论坛,因为此问题与Visual C ++语言有关.该论坛中还有更多的Visual C ++语言专家.

I'm moving this thread from Base ”Windows Forms" to "Visual C++ Language" forum, since this issue is related to Visual C++ Language. There are more Visual C++ Language experts in that forum.

最好的问候,
周海伦

Best Regards,
Helen Zhou


这篇关于动态列表&lt; T&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆