コード例 #1
0
        public virtual void Unmarshal(DataInputStream dis)
        {
            if (dis != null)
            {
                try
                {
                    this._numberOfStandardVariableRecords = dis.ReadUnsignedShort();
                    for (int idx = 0; idx < this.NumberOfStandardVariableRecords; idx++)
                    {
                        SimulationManagementPduHeader anX = new SimulationManagementPduHeader();
                        anX.Unmarshal(dis);
                        this._standardVariables.Add(anX);
                    }
                    ;
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
コード例 #2
0
        public virtual void Unmarshal(DataInputStream dis)
        {
            if (dis != null)
            {
                try
                {
                    this._numberOfStandardVariableRecords = dis.ReadUnsignedShort();
                    for (int idx = 0; idx < this.NumberOfStandardVariableRecords; idx++)
                    {
                        SimulationManagementPduHeader anX = new SimulationManagementPduHeader();
                        anX.Unmarshal(dis);
                        this._standardVariables.Add(anX);
                    };

                }
                catch (Exception e)
                {
            #if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
            #endif
                    this.OnException(e);
                }
            }
        }