扩大转换
缩小转换
数组
string[,] shuzu = new string[2, 4];
shuzu[0, 0] = "喻小林";
shuzu[0,1]="男";
shuzu[0, 2] = "长江大学";
shuzu[0, 3] = "即可";
shuzu[1, 0] = "方方";
shuzu[1, 1] = "女";
shuzu[1, 2] = "长江大学";
shuzu[1, 3] = "英语";
for (int i = 0; i <= shuzu.Rank; i++) //Rank计算出维数
{
for (int j = 0; j <=shuzu.GetUpperBound(shuzu.Rank-1); j++) //利用GetUpperBound(shuzu.Rank - 1)方法获得数组最大维得;如果是0的话就是最小的维数
{
Response.Write("<br>" + shuzu[i,j].ToString());
}
}