Esempio n. 1
0
        } // end of unmarshal method

        ///<summary>
        ///This allows for a quick display of PDU data.  The current format is unacceptable and only used for debugging.
        ///This will be modified in the future to provide a better display.  Usage:
        ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb });
        ///where pdu is an object representing a single pdu and sb is a StringBuilder.
        ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality
        ///</summary>
        new public void reflection(StringBuilder sb)
        {
            sb.Append("<IsPartOfPdu>" + System.Environment.NewLine);
            base.reflection(sb);
            try
            {
                sb.Append("<orginatingEntityID>" + System.Environment.NewLine);
                _orginatingEntityID.reflection(sb);
                sb.Append("</orginatingEntityID>" + System.Environment.NewLine);
                sb.Append("<receivingEntityID>" + System.Environment.NewLine);
                _receivingEntityID.reflection(sb);
                sb.Append("</receivingEntityID>" + System.Environment.NewLine);
                sb.Append("<relationship>" + System.Environment.NewLine);
                _relationship.reflection(sb);
                sb.Append("</relationship>" + System.Environment.NewLine);
                sb.Append("<partLocation>" + System.Environment.NewLine);
                _partLocation.reflection(sb);
                sb.Append("</partLocation>" + System.Environment.NewLine);
                sb.Append("<namedLocationID>" + System.Environment.NewLine);
                _namedLocationID.reflection(sb);
                sb.Append("</namedLocationID>" + System.Environment.NewLine);
                sb.Append("<partEntityType>" + System.Environment.NewLine);
                _partEntityType.reflection(sb);
                sb.Append("</partEntityType>" + System.Environment.NewLine);
                sb.Append("</IsPartOfPdu>" + System.Environment.NewLine);
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of reflection method