I translated this line of code from Delphi:
byteSendData[4] := (byteSendData[1] + byteSendData[2] + byteSendData[3]) Mod 256;
into this in C#:
byteSendData[4] = (byteSendData[1] + byteSendData[2] + byteSendData[3]) % 256;
but VS returns me error I can't implicitly convert type 'int' into 'byte'.