You can't change the length, but you could allocate a new array of larger
size and copy current array into it.
byte[] SetLenght(byte[] currByteArray, int newSize)
{
if ( currByteArray.Length > newSize)
//error
byte[] newArray = new byte[newSize];
// copy currArray to newArray.
return newArray;
}
Other error checks are needed.
--
William Stacey, MVP
"flyfish" <bl*********@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
If some function just like
SetLength(byteData,100)
....?