Weighted items class
Inheritance: IComparable
Beispiel #1
0
        ///
        public bool Equals(WeightedItem otherItem)
        {
            if (otherItem == null)
                return false;

            return Math.Abs(this.weight - otherItem.weight) < 0.000001;
        }
Beispiel #2
0
        ///
        public bool Equals(WeightedItem otherItem)
        {
            if (otherItem == null)
            {
                return(false);
            }

            return(Math.Abs(this.weight - otherItem.weight) < 0.000001);
        }