示例#1
0
        /// <summary>
        /// Create a TerminalBlock from a given byte array
        /// </summary>
        /// <param name="ba">The byte array</param>
        /// <returns>A TerminalBlock object</returns>
        public static TerminalBlock FromByteArray(byte[] ba)
        {
            TerminalBlock terminalBlock = new TerminalBlock();

            if (ba.Length < 4)
            {
                throw new ArgumentException(String.Format("Size of the TerminalBlock Structure is less than 4 ({0})", ba.Length));
            }
            return(terminalBlock);
        }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public ExtraData() : base()
 {
     TerminalBlock = new TerminalBlock();
 }