protected bool Equals(ApplicationConfiguration other) { var down = DownloadHandlerConfigurations.DictionaryEqual(other.DownloadHandlerConfigurations); var file = FileParserConfigurations.DictionaryEqual(other.FileParserConfigurations); return(Equals(KeePassConfiguration, other.KeePassConfiguration) && Equals(DatabaseConfiguration, other.DatabaseConfiguration) && Equals(UiConfiguration, other.UiConfiguration) && down && file); }
public override int GetHashCode() { unchecked { var hashCode = (DownloadHandlerConfigurations != null ? DownloadHandlerConfigurations.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FileParserConfigurations != null ? FileParserConfigurations.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (KeePassConfiguration != null ? KeePassConfiguration.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DatabaseConfiguration != null ? DatabaseConfiguration.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UiConfiguration != null ? UiConfiguration.GetHashCode() : 0); return(hashCode); } }