Exemplo n.º 1
0
 /// <summary> Creates a XTN.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public XTN(Message message) : base(message)
 {
     data    = new Type[9];
     data[0] = new TN(message);
     data[1] = new ID(message, 0);
     data[2] = new ID(message, 0);
     data[3] = new ST(message);
     data[4] = new NM(message);
     data[5] = new NM(message);
     data[6] = new NM(message);
     data[7] = new NM(message);
     data[8] = new ST(message);
 }
Exemplo n.º 2
0
        /// <summary> Returns [(999)] 999-9999 [X99999][C any text] (component #0).  This is a convenience method that saves you from
        /// casting and handling an exception.
        /// </summary>
        public virtual TN get9999999X99999CAnyText()
        {
            TN ret = null;

            try
            {
                ret = (TN)getComponent(0);
            }
            catch (DataTypeException)
            {
                throw new Exception();
            }
            return(ret);
        }
Exemplo n.º 3
0
		/// <summary> Creates a XTN.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public XTN(Message message):base(message)
		{
			data = new Type[9];
			data[0] = new TN(message);
			data[1] = new ID(message, 0);
			data[2] = new ID(message, 0);
			data[3] = new ST(message);
			data[4] = new NM(message);
			data[5] = new NM(message);
			data[6] = new NM(message);
			data[7] = new NM(message);
			data[8] = new ST(message);
		}