我怎样才能remove a group of elements inside an array
?
我有以下代码:
private void processResponse(byte[] response)
{
byte[] header;
byte[] payload;
if (response.Length > 8)
{
header = response.Take<byte>(8).ToArray();
//payload = //should be the rest of "response" bytes
}
}
}
如何在没有payload
的情况下response
成为header
?