Ejemplo n.º 1
0
        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;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        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;
                    }
                }
            }
        }