c#-基础-数组使用方式1
1、灵活扩展使用,添加、取出
static void Main(string[] args) { Su(); Console.ReadKey(true); Console.WriteLine("main"); } public static void Su() { string[] li_1 = new string[5]; li_1[0] = "123456"; li_1[1] = "name"; Console.WriteLine(li_1[0].ToString()); Console.WriteLine(li_1[1].ToString()); Console.WriteLine("su"); }