Code :
public static int GetInt(byte[] bytes, int offset) => (bytes[offset] | bytes[++offset] << 8 | bytes[++offset] << 16 | bytes[++offset] << 24);
Error :
System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
I searched internet but I don't have managed to solve it.