byte array to an integer array

Started by
0 comments, last by PuterPaul 20 years ago
How is this done in c#, i''ve tried to do so by casting explicitly but it doesn''t except it??
Advertisement
byte[] bytes = ...;int [] ints = new int[bytes.length];for(int i=0; i < ints.length; ++i)   ints[ i ] = (int)bytes[ i ];


- Pete

[edited by - Pete_ on April 3, 2004 5:01:08 PM]

This topic is closed to new replies.

Advertisement