예제 #1
0
        public virtual void Reflection(StringBuilder sb)
        {
            sb.AppendLine("<ElectronicEmissionSystemData>");
            try
            {
                sb.AppendLine("<systemDataLength type=\"byte\">" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + "</systemDataLength>");
                sb.AppendLine("<beamDataRecords type=\"byte\">" + this._beamDataRecords.Count.ToString(CultureInfo.InvariantCulture) + "</beamDataRecords>");
                sb.AppendLine("<emissionsPadding2 type=\"ushort\">" + this._emissionsPadding2.ToString(CultureInfo.InvariantCulture) + "</emissionsPadding2>");
                sb.AppendLine("<emitterSystem>");
                this._emitterSystem.Reflection(sb);
                sb.AppendLine("</emitterSystem>");
                sb.AppendLine("<location>");
                this._location.Reflection(sb);
                sb.AppendLine("</location>");
                for (int idx = 0; idx < this._beamDataRecords.Count; idx++)
                {
                    sb.AppendLine("<beamDataRecords" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"ElectronicEmissionBeamData\">");
                    ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)this._beamDataRecords[idx];
                    aElectronicEmissionBeamData.Reflection(sb);
                    sb.AppendLine("</beamDataRecords" + idx.ToString(CultureInfo.InvariantCulture) + ">");
                }

                sb.AppendLine("</ElectronicEmissionSystemData>");
            }
            catch (Exception e)
            {
#if DEBUG
                Trace.WriteLine(e);
                Trace.Flush();
#endif
                this.OnException(e);
            }
        }