private void CheckSequence(byte[] sequence, string sequenceName) { if (ArrayHelpers.CheckSequence(_smlMessage, ref _position, sequence)) { return; } throw new Exception("Sequence is not valid: " + sequenceName + " / Position:" + _position.ToString()); }