public ClassByte(ClaHighPart highPart, SecureMessagingFormat secMsgFmt, int logChannel)
 {
     if (logChannel > 3 || logChannel < 0)
         throw new ArgumentOutOfRangeException(
             "logChannel",
             "Logical channels must be in the range between 0 and 3.");
     this.cla = (byte)((int)highPart | (int)secMsgFmt | logChannel);
 }
Exemple #2
0
 /// <summary>Initializes a new instance of the <see cref="ClassByte" /> class.</summary>
 /// <param name="highPart">The high part of the CLA</param>
 /// <param name="secureMessagingFormat">The secure messaging format.</param>
 /// <param name="logicalChannelNumber">The logical channel number.</param>
 /// <exception cref="System.ArgumentOutOfRangeException">logicalChannelNumber;Logical channels must be in the range between 0 and 3.</exception>
 public ClassByte(ClaHighPart highPart, SecureMessagingFormat secureMessagingFormat, int logicalChannelNumber) {
     if (logicalChannelNumber > 3 || logicalChannelNumber < 0) {
         throw new ArgumentOutOfRangeException(
             nameof(logicalChannelNumber),
             "Logical channels must be in the range between 0 and 3.");
     }
     Value = (byte) ((int) highPart | (int) secureMessagingFormat | logicalChannelNumber);
 }
Exemple #3
0
 public ClassByte(ClaHighPart highPart, SecureMessagingFormat secMsgFmt, int logChannel)
 {
     if (logChannel > 3 || logChannel < 0)
     {
         throw new ArgumentOutOfRangeException(
                   "logChannel",
                   "Logical channels must be in the range between 0 and 3.");
     }
     this.cla = (byte)((int)highPart | (int)secMsgFmt | logChannel);
 }
Exemple #4
0
 /// <summary>Initializes a new instance of the <see cref="ClassByte" /> class.</summary>
 /// <param name="highPart">The high part of the CLA</param>
 /// <param name="secureMessagingFormat">The secure messaging format.</param>
 /// <param name="logicalChannelNumber">The logical channel number.</param>
 /// <exception cref="System.ArgumentOutOfRangeException">logicalChannelNumber;Logical channels must be in the range between 0 and 3.</exception>
 public ClassByte(ClaHighPart highPart, SecureMessagingFormat secureMessagingFormat, int logicalChannelNumber)
 {
     if (logicalChannelNumber > 3 || logicalChannelNumber < 0)
     {
         throw new ArgumentOutOfRangeException(
                   nameof(logicalChannelNumber),
                   "Logical channels must be in the range between 0 and 3.");
     }
     Value = (byte)((int)highPart | (int)secureMessagingFormat | logicalChannelNumber);
 }