public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedInt((uint)this._recordType);
             dos.WriteUnsignedByte((byte)this._recordLength);
             dos.WriteUnsignedLong((ulong)this._recordSpecificFields);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
 public virtual void Marshal(DataOutputStream dos)
 {
     if (dos != null)
     {
         try
         {
             dos.WriteUnsignedByte((byte)this._recordType);
             dos.WriteUnsignedByte((byte)this._detachedIndicator);
             dos.WriteUnsignedShort((ushort)this._partAttachedTo);
             dos.WriteUnsignedInt((uint)this._parameterType);
             dos.WriteUnsignedLong((ulong)this._parameterValue);
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }