public byte[] Bytes() { var commandDataLength = new IntHex( new Lc(_commandApduBody) ).Value(); return(_commandApduBody .Bytes() .Skip(1) .Take(commandDataLength) .ToArray()); }
public byte[] Bytes() { var exceptedDataLength = new IntHex( new Le( new CommandApduBody(_rawCommandApdu) ) ).Value(); // If Le is not available, leave building DO ‘97’ out. if (exceptedDataLength == 0) { return(new Binary().Bytes()); } return(new DO97(exceptedDataLength).Bytes()); }