public IEquatable <RealValueNodes> Covert(RealValueNodes obj) { NodesWithHash nwh = obj as NodesWithHash; if (nwh == null) { nwh = new NodesWithHash(obj.Lats, obj.Lons, obj.Values); } return(nwh); }
public bool Equals(RealValueNodes other) { NodesWithHash nwh = other as NodesWithHash; if (nwh == null) { nwh = new NodesWithHash(other.Lats, other.Lons, other.Values); } return(nwh.hash == this.hash); }