Is there a function in VB.NET which will concatenate two arrays?
Currently, I am using this function:
VB Code:
Private Function AppendArray(ByVal BaseArray() As Byte, ByVal Buffer() As Byte) As Byte() If IsArray(BaseArray) = False Then ReDim BaseArray(Buffer.Length - 1) Buffer.CopyTo(BaseArray, 0) Else ReDim Preserve BaseArray(BaseArray.Length + (Buffer.Length - 1)) Buffer.CopyTo(BaseArray, BaseArray.Length - Buffer.Length) End If Return BaseArray End Function




Reply With Quote