Beispiel #1
0
 public void CopyTo(I8583 i8583, params int[] idxs)
 {
     i8583.TPDU = this.TPDU;
     for (int i = 0; i < 64; i++)
     {
         if (Array.IndexOf(idxs, i) < 0)
         {
             continue;
         }
         if (this.Gettabx_flag(i) == "1")
         {
             i8583.settabx_data(i, this.tab[i].data.ToList().ToArray());
         }
     }
 }
Beispiel #2
0
        public I8583 Clone()
        {
            I8583 i8583 = new I8583(_messageType);

            i8583.TPDU = new byte[this.TPDU.Length];
            Array.Copy(this.TPDU, i8583.TPDU, this.TPDU.Length);
            for (int i = 0; i < 64; i++)
            {
                if (this.Gettabx_flag(i) == "1")
                {
                    i8583.settabx_data(i, this.tab[i].data.ToList().ToArray());
                }
            }
            return(i8583);
        }