J
jk
Hello: Is there an operator for directly adding bytes. I can do it
by creating instances of Byte, and getting their intValue, but is
there a direct method such as byte 'b = 2 + 3;'. I know that casting
this to bytes will work: 'b = (byte)2 + (byte)3;', but is there an
operator that does not require any conversion of types?
Thanks in Advance
John
=====================
Byte bA = new Byte((byte)65);
Byte b1 = new Byte((byte)1);
byte[] bytes = new byte[3];
bytes[0] = bA.byteValue();
bytes[1] = (byte)(bA.intValue() + b1.intValue()); // 66, B
....
=====================
by creating instances of Byte, and getting their intValue, but is
there a direct method such as byte 'b = 2 + 3;'. I know that casting
this to bytes will work: 'b = (byte)2 + (byte)3;', but is there an
operator that does not require any conversion of types?
Thanks in Advance
John
=====================
Byte bA = new Byte((byte)65);
Byte b1 = new Byte((byte)1);
byte[] bytes = new byte[3];
bytes[0] = bA.byteValue();
bytes[1] = (byte)(bA.intValue() + b1.intValue()); // 66, B
....
=====================