public SimEventHandle(ISimEntity sender, ISimEntity target, ISimEvent simEvent, UniqueDouble udt) { _sender = sender; _target = target; _simEvent = simEvent; _udt = udt; }
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); } } }