I found out that in C# a+=1 is not equal to a = a+1.
For example, the following code compiles without any error: byte b = 10; b += 5;
while the following code h
The compiler is probably treating the 5 as an Int32 in the second one. You'll need to cast it