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