日期:2014-05-17 浏览次数:21351 次
void Main()
{
byte[] a = new byte[] { 12, 32, 34, 43, 21, 23, 45, 56, 67, 78, 89, 96, 54, 32, 23, 45, 23 };
byte[] newA= a.Skip(2).Take(5).ToArray();
foreach (var b in newA)
{
Console.WriteLine(b);
}
}
/*
34
43
21
23
45
*/
byte[] a = new byte[] { 12, 32, 34, 43, 21, 23, 45, 56, 67, 78, 89, 96, 54, 32, 23, 45, 23 };
foreach (byte v in a.Skip(2).Take(8))
{
Console.WriteLine(v);
}