public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } var that = o as DistanceValueSource; if (that == null) { return(false); } if (!from.Equals(that.from)) { return(false); } if (!strategy.Equals(that.strategy)) { return(false); } if (multiplier != that.multiplier) { return(false); } return(true); }
public override bool Equals(object o) { if (this == o) { return(true); } var that = o as DistanceValueSource; if (that == null) { return(false); } if (!from.Equals(that.from)) { return(false); } if (!strategy.Equals(that.strategy)) { return(false); } return(true); }