Hi,
Im using Visual C# Express Edition 2008. I need to do byte to integer conversion. Here is my codes:
The error is not all code paths return a value. I wasnt sure what the problem lies. I tried to put return xyz. Another error popped up saying "cannot implicity convert type 'byte[]' to 'string'.
Can anyone help me??
Thanks.
Im using Visual C# Express Edition 2008. I need to do byte to integer conversion. Here is my codes:
Code:
private string ByteToInt(byte[] xyz)
{
if (BitConverter.IsLittleEndian)
Array.Reverse(xyz);
}
The error is not all code paths return a value. I wasnt sure what the problem lies. I tried to put return xyz. Another error popped up saying "cannot implicity convert type 'byte[]' to 'string'.
Can anyone help me??
Thanks.
Comment