public override int GetMarshalledSize() { int marshalSize = 0; marshalSize = base.GetMarshalledSize(); marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID marshalSize += this._eventID.GetMarshalledSize(); // this._eventID marshalSize += 1; // this._stateUpdateIndicator marshalSize += 1; // this._numberOfSystems marshalSize += 2; // this._paddingForEmissionsPdu for (int idx = 0; idx < this._systems.Count; idx++) { ElectronicEmissionSystemData listElement = (ElectronicEmissionSystemData)this._systems[idx]; marshalSize += listElement.GetMarshalledSize(); } return(marshalSize); }