Added: DESFire Class V2

This commit is contained in:
TheJoKlLa
2020-10-07 19:25:51 +02:00
parent f5dffcec5b
commit 7381341d37
24 changed files with 1806 additions and 80 deletions

View File

@ -107,5 +107,28 @@ namespace NFC.ISO7816_4
}
}
#endregion
#region Methodes
public byte[] ToArray()
{
byte[] array = null;
if (Body != null)
{
array = new byte[Body.Length + 2];
Body.CopyTo(array, 0);
array[Body.Length] = SW1;
array[Body.Length + 1] = SW2;
}
else
{
array = new byte[2];
array[0] = SW1;
array[1] = SW2;
}
return array;
}
#endregion
}
}