G
Guest
How do I convert an sbyte to a byte. When I try the code
below, it blows up if the sbyte is a negative number.
sbyte[] sbytes = input;
for( int i = 0; i < sbytes.Length; i++ )
{
byte x = Convert.ToByte( sbytes );
Console.WriteLine( x );
}
below, it blows up if the sbyte is a negative number.
sbyte[] sbytes = input;
for( int i = 0; i < sbytes.Length; i++ )
{
byte x = Convert.ToByte( sbytes );
Console.WriteLine( x );
}