CSharp examples for System:Array Index
Sets the index on an array
using System.Collections.Generic; using System.Collections; using System;// w w w . j av a2s .c o m public class Main{ /// <summary> /// Sets the indice on an array /// </summary> /// <param name="length">The length.</param> /// <returns></returns> public static int[] ArrayIndice(int length) { int[] indice = new int[length]; for (int i = 0; i < length; i++) { indice[i] = i; } return indice; } }