Converting VB .NET code to C#
- by Brono The Vibrator
I have the follwing VB .NET code I am trying to convert to C#
Dim decryptedBytes(CInt(encryptedStream.Length - 1)) As Byte
I tried this:
int tempData = Convert.ToInt32(encryptedStream.Length - 1);
Byte decryptedBytes;
decryptedBytes = decryptedBytes[tempData];
but got this error message:
Cannot apply indexing with [] to an expression of type byte.
Please note that the VB .NET code works.