public override int GetHashCode() { #if NETCOREAPP3_1 return(HashCode.Combine(RepositoryPath, NumberOfCommits, HistoryDateTime, (int)FetchType)); #else return((RepositoryPath.GetHashCode() * 379) + (NumberOfCommits) + (HistoryDateTime.GetHashCode() * 379)); #endif }
public bool Equals(RepositorySetting other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(RepositoryPath == other.RepositoryPath && NumberOfCommits == other.NumberOfCommits && HistoryDateTime.Equals(other.HistoryDateTime) && FetchType == other.FetchType); }