The following code working in 2.0 and 3.5 , but giving exception in 4.0:--
byte[] bytearray = new bytearray[16];
MemoryStream m2 = new MemoryStream(bytearray);
BinaryReader reader = new BinaryReader(m2);
decimal dec = reader.ReadDecimal();
Console.WriteLine(dec.ToString());
Console.ReadLine();
m2.Close();
reader.Close();
VulpesPosted Aug 8, 2012, 4:31 AM
byte[] bytearray = new bytearray[16];
to this in order for it to compile:
byte[] bytearray = new byte[16];
What exception are you getting under .NET 4.0?