public override int GetHashCode() { unchecked { var hashCode = GoDeeper.GetHashCode(); hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProjectPath != null ? ProjectPath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AdditionalOffset != null ? AdditionalOffset.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsFile.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { // Two states are the same if the serialized project and path are the same. // This is used when a new state is saved - if it equals the previous one, it is discarded. // Some information might therefore be lost - add the properties here if necessary. unchecked { int hash = SerializedProject.GetHashCode() * 31 + 17; if (ProjectPath != null) { hash = hash * 31 + ProjectPath.GetHashCode(); } return(hash); } }
public override int GetHashCode() { return(ProjectPath.GetHashCode() ^ Line.GetHashCode() ^ Column.GetHashCode()); }