Beispiel #1
0
        public void SetHistoricalCharactersType(HistoricalCharacterTypes type)
        {
            switch (type)
            {
            case HistoricalCharacterTypes.CompactTlv:
                this.tokenizedAtr.HistoricalCharacters.HistoricalCharacters = new byte[] { 0x80 };
                break;

            case HistoricalCharacterTypes.DirDataReference:
                this.tokenizedAtr.HistoricalCharacters.HistoricalCharacters = new byte[] { 0x10 };
                break;

            case HistoricalCharacterTypes.Proprietary:
                this.tokenizedAtr.HistoricalCharacters.HistoricalCharacters = new byte[] { 0x01 };
                break;

            case HistoricalCharacterTypes.Rfu:
                this.tokenizedAtr.HistoricalCharacters.HistoricalCharacters = new byte[] { 0x81 };
                break;

            case HistoricalCharacterTypes.No:
                this.tokenizedAtr.HistoricalCharacters.HistoricalCharacters = new byte[0];
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(type));
            }
        }
 public void SetHistoricalCharacterType(HistoricalCharacterTypes type)
 {
     this.atr.SetHistoricalCharactersType(type);
 }