第一种:

第一种:

string[] myArray = new string[10];

string[] myArray = new string[10];

for(int i = 0; i<10;i++){

for(int i = 0; i<10;i++){

  myArray[i] = i+1;

  myArray[i] = i+1;

}

}

第二种:

第二种:

string[] myArray2 = {“1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”10”};

string[] myArray2 = {“1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”10”};

第三种:

第三种:

string[] myArray = new
string[10]{“1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”10”};

string[] myArray = new
string[10]{“1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”10”};

第四种:

第四种:

string[] myArray = new
string[]{“1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”10”};

string[] myArray = new
string[]{“1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”10”};