} // 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("<MinefieldResponseNackPdu>" + System.Environment.NewLine); base.reflection(sb); try { sb.Append("<minefieldID>" + System.Environment.NewLine); _minefieldID.reflection(sb); sb.Append("</minefieldID>" + System.Environment.NewLine); sb.Append("<requestingEntityID>" + System.Environment.NewLine); _requestingEntityID.reflection(sb); sb.Append("</requestingEntityID>" + System.Environment.NewLine); sb.Append("<requestID type=\"byte\">" + _requestID.ToString() + "</requestID> " + System.Environment.NewLine); sb.Append("<missingPduSequenceNumbers type=\"byte\">" + _missingPduSequenceNumbers.Count.ToString() + "</missingPduSequenceNumbers> " + System.Environment.NewLine); for (int idx = 0; idx < _missingPduSequenceNumbers.Count; idx++) { sb.Append("<missingPduSequenceNumbers" + idx.ToString() + " type=\"EightByteChunk\">" + System.Environment.NewLine); EightByteChunk aEightByteChunk = (EightByteChunk)_missingPduSequenceNumbers[idx]; aEightByteChunk.reflection(sb); sb.Append("</missingPduSequenceNumbers" + idx.ToString() + ">" + System.Environment.NewLine); } // end of list marshalling sb.Append("</MinefieldResponseNackPdu>" + System.Environment.NewLine); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
} // 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> public void reflection(StringBuilder sb) { sb.Append("<VariableDatum>" + System.Environment.NewLine); try { sb.Append("<variableDatumID type=\"uint\">" + _variableDatumID.ToString() + "</variableDatumID> " + System.Environment.NewLine); sb.Append("<variableDatums type=\"uint\">" + _variableDatums.Count.ToString() + "</variableDatums> " + System.Environment.NewLine); for (int idx = 0; idx < _variableDatums.Count; idx++) { sb.Append("<variableDatums" + idx.ToString() + " type=\"EightByteChunk\">" + System.Environment.NewLine); EightByteChunk aEightByteChunk = (EightByteChunk)_variableDatums[idx]; aEightByteChunk.reflection(sb); sb.Append("</variableDatums" + idx.ToString() + ">" + System.Environment.NewLine); } // end of list marshalling sb.Append("</VariableDatum>" + System.Environment.NewLine); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method