public virtual void Marshal(DataOutputStream dos) { if (dos != null) { try { dos.WriteDouble((double)this._x); dos.WriteDouble((double)this._y); dos.WriteDouble((double)this._z); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Marshal(DataOutputStream dos) { if (dos != null) { try { dos.WriteUnsignedByte((byte)this._parameterTypeDesignator); dos.WriteUnsignedByte((byte)this._changeIndicator); dos.WriteUnsignedShort((ushort)this._partAttachedTo); dos.WriteInt((int)this._parameterType); dos.WriteDouble((double)this._parameterValue); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }