以下代码利用ArrarSegment泛型结构,从int数组arr中取出arr[2]到arr[5] 1using System; 2using System.Collections; 3 4 5class Program 6} 运行结果: 3 4 5 相关文章: