C#中的动态Jagged数组 [英] dynamic Jagged Array in C#
本文介绍了C#中的动态Jagged数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮我制作一个动态的锯齿状阵列。
这可以在运行时获取用户的行数和列数。
我将是非常感谢。
问候:Ghulam Sadiq
解决方案
对于等级2,这将是System.Collections.Generic .List< System.Collections.Generic.List< YouElementType>>
:
http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx [ ^ ]。
-SA
它也可以帮助你理解。
锯齿状阵列
C#中的锯齿状数组/ A>
Can any one help me to made a dynamic jagged array.
Which can take the number of rows and columns from the user at run time.
I will be very thanks full.
Regards: Ghulam Sadiq
解决方案
For the rank 2, this would beSystem.Collections.Generic.List<System.Collections.Generic.List<YouElementType>>
:
http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx[^].
—SA
it will also help you to understand.
jagged array
jagged array in C#
这篇关于C#中的动态Jagged数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文