示例#1
0
 public SimEventHandle(ISimEntity sender, ISimEntity target, ISimEvent simEvent, UniqueDouble udt)
 {
     _sender   = sender;
     _target   = target;
     _simEvent = simEvent;
     _udt      = udt;
 }
示例#2
0
        public int CompareTo(object obj)
        {
            UniqueDouble other = (UniqueDouble)obj;

            // compare by value
            if (this._value < other._value)
            {
                return(-1);
            }
            else if (this._value > other._value)
            {
                return(+1);
            }
            else
            {             // but use the discriminator if the values agree
                if (this._discriminator < other._discriminator)
                {
                    return(-1);
                }
                else if (this._discriminator > other._discriminator)
                {
                    return(+1);
                }
                else
                {
                    return(0);
                }
            }
        }