非零基数组的性能没有0基数组性能高,因为IL内置了一些指令来操作0基数组的,如果你想创建非0基数组,你可以这样做:
int[] lowerBounds={1};
int[] lengths={100};
int[] array=(int[])Array.CreateInstance(typeof(int),lengths,lowerBounds);
创建了长度100,下标从1开始的数组!
转载于:https://www.cnblogs.com/tiwlin/archive/2009/10/10/1579971.html