C#阵列 - 字符串[] []与字符串[,] [英] C# Arrays - string[][] vs. string[,]
本文介绍了C#阵列 - 字符串[] []与字符串[,]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
<一href=\"http://stackoverflow.com/questions/597720/what-is-differences-between-multidimensional-array-and-array-of-arrays-in-c\">What在C#中的数组多维阵列和阵列之间的区别是什么?
任何人能解释我的区别的String [] []
和字符串[,]
?
Can anybody explain me the difference between string[][]
and string[,]
?
推荐答案
字符串[,]
是的multidimensional阵列。
的String [] []
是一个铁血阵列:
一个交错数组是一个数组,其元素的数组。中的元素
交错数组可以是不同的尺寸和大小。锯齿状
阵列有时被称为数组的数组。
A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays."
这篇关于C#阵列 - 字符串[] []与字符串[,]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文