using System.Collections.Generic;//以前:int[] arr1 = { 1, 2, 3 };var list1 = new List<int> { 2, 5, 7 };//在 12 版本中:int[] arr2 = [ 1, 2, 3 ];List<int> list2 = [ 2, 5, 7 ];