public bool Equals(Weight other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(WeightRange == other.WeightRange && Kilograms.Equals(other.Kilograms) && IsMetric == other.IsMetric); }
public bool Equals(Weight other) => Kilograms.Equals(other.Kilograms);