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

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

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