# HG changeset patch # User alys # Date 2021-04-01 03:26:54 # Node ID 808c39a0199fb5fb792f23c1d2125f1141c55cc6 # Parent 222a32473921bde5a3589d602753b84b99b62b8e Address some warnings. diff --git a/isometric-park-fna/Tile.cs b/isometric-park-fna/Tile.cs --- a/isometric-park-fna/Tile.cs +++ b/isometric-park-fna/Tile.cs @@ -21,11 +21,16 @@ return !(left == right); } - public bool Equals(Object other) { + public override bool Equals(Object other) { return ((other != null) && ! this.GetType().Equals(other.GetType()) && this == (Edge)other); //we just confirmed the types match so this is okay - } + } + + public override int GetHashCode() { + // return HashCode.Combine(Start, End); + return (Start, End).GetHashCode(); + } } public class Tile