Ejemplo n.º 1
0
///<summary>
///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _receivingEntityID.marshal(dos);
                _supplyingEntityID.marshal(dos);
                dos.writeByte((byte)_supplies.Count);
                dos.writeShort((short)_padding1);
                dos.writeByte((byte)_padding2);

                for (int idx = 0; idx < _supplies.Count; idx++)
                {
                    SupplyQuantity aSupplyQuantity = (SupplyQuantity)_supplies[idx];
                    aSupplyQuantity.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method