In .NET 2.0 is there an API that lets me quickly convert a list of integers to a byte array (List<int> to byte[])? The resulting byte array should be the bitwise binary representation of the sequence of integer values, so serailizing the the List instance using default .NET type serialization wouldn’t work.
In .NET 2.0 is there an API that lets me quickly convert a list
Share
Buffer.BlockCopyuses raw memory addresses, not array indexes, to copy array data. It only works on arrays of primitives.