public virtual int GetMarshalledSize() { int marshalSize = 0; marshalSize += 1; // this._systemDataLength marshalSize += 1; // this._numberOfBeams marshalSize += 2; // this._emissionsPadding2 marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem marshalSize += this._location.GetMarshalledSize(); // this._location for (int idx = 0; idx < this._beamDataRecords.Count; idx++) { ElectronicEmissionBeamData listElement = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; marshalSize += listElement.GetMarshalledSize(); } return(marshalSize); }