1、
int[] o = new int[] {0,1,2}; foreach (int v in o) { MessageBox.Show(v.ToString()); }
2、
int[] o=new int[3];
o[0]=0;
o[1]=1;
o[2]=2;