I want to transmit one APDU and I get back the response. I want to check the last two bytes by an API which will log the comparison.
byte[] response = Transmit(apdu);
//response here comes will be 0x00 0x01 0x02 0x03 0x04
//response.Length will be 5
byte[] expectedResponse = { 0x03, 0x04 };
int index = (response.Length)-2;
Log.CheckLastTwoBytes(response[index],expectedResponse);
//The declaration of CheckLastTwoBytes is
//public static void CheckLastTwoBytes(byte[] Response, byte[] ExpResp)
This is an error of invalid arguments. How can I pass the last 2 bytes to APIs?